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.com
Is making a request to b.com to request resources such as image files, icons, etc…
https://msdn.microsoft.com/en-us/magazine/dn532203.aspx
These are the steps to take to configure CORS:
- Navigate to the Site in which you deployed WSG
- Open web.config in notepad
- Look for the following WsgExplorer.AllowedCrossDomainRequests and change the value to "*.bentley.com"
<!--Comma separated domains used in WsgExplorer that are allowed to initiate cross-origin requests using CORS (e.g. value="http://www.example.com").Empty value to deny any cross-origin access; "*" value to allow cross-origin access to all domains.-->
<add key="WsgExplorer.AllowedCrossDomainRequests" value="*.bentley.com" />
This will be in the installer for WSG in a future release.