Quantcast
Channel: Bentley Communities
Viewing all articles
Browse latest Browse all 4605

WSG and CORS Configuration

$
0
0

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:

  1. Navigate to the Site in which you deployed WSG
  2. Open web.config in notepad
  3. 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.


Viewing all articles
Browse latest Browse all 4605

Trending Articles