In order to have a successful connection to ProjectWise Work Area connections.Bentley Web Services Gateway (WSG) needs to be configured with CORS configuration.
First off what is CORS? CORS stands for Cross-Origin Resource Sharing. To make it simple it's when a.comIs making a request to b.com to request resources such as image files, icons, etc…
These are the steps to take to configure CORS:
<!--Comma separated domains that are allowed to initiate cross-origin requests using CORS. You can specify fully qualified domain URL
(e.g. value="http://www.example.com"), subdomain (e.g. *.example.com) or empty value to deny any cross-origin access. "*" value can be used to
allow cross-origin access to all domains but it is not recommended due to security concerns -->
<add key="AccessControlAllowOrigin" value=""/>
*Please note "*" value can be used to allow cross-origin access to all domains but it is not recommended due to security concerns -->
For accessing ProjectWise Share work area connection add https://projectshareportal.bentley.com
<add key="AccessControlAllowOrigin" value="https://projectshareportal.bentley.com"/>
Version 2.6+ WSG Installation wizard allows configurable option for CORS in the Installer.
Please note we have a new URL for our next release of ProjectWise Web. CORS configuration will need to be updated with https://connect-projectwisewac.bentley.com.
corrected the AccessControlAllowOrigin it was showing the wrong one as an example.
you replied in the blog area you can post questions and feedback in the forum area. Also send me an email if you like.
Where is the best place to provide feedback on the functionality? Here or somewhere else?
OK, found the second setting and updated and all OK now. It might be helpful to update the steps above to make it clear there are two entries.... second one is <add key="AccessControlAllowOrigin" value="" />
There's two CORS setting are you changing the right one?
Hi Ranveer - I have tried this but still not having any luck. Once changes were made I did an IISRESET but when I try to add connections, getting an invalid server URL message.