CORS error trying to access Web Client using Okta authorization - HxGN SDx - Update 63 - Administration & Configuration - Hexagon

HxGN SDx API Services Configuration

Language
English
Product
HxGN SDx
Search by Category
Administration & Configuration
SmartPlant Foundation / SDx Version
10

Problem

When you attempt to log on to or try to access the Web Client using an Okta Authorization Server, a message displays that the web client cannot be accessed or the authentication server cannot be found.

Solution

The Okta allowed origins list needs to be set to all "*" or the Web Client Domain needs to be added to the Okta list. For example:

</security>

<oauth issuer="https://dev597594.oktapreviewcom/oauth2/ausg0871hp0DCijdr0h7" requiredScopes="ingr.api" />

<cors allowedOrigins="*" allowedMethods="*" allowedHeaders="*" exposedHeaders="" allowCredentials="false" preflightMaxAge="600" />

</security>