Problem with OIDC login process with iTwin Sample Web App (FutureOn) #1193
-
We have built a sample iTwin Viewer react webapp. This works correctly when run on my Macbook (localhost). The OIDC login process is successful. However, when the web app is deployed to a development server, the OIDC login process fails with this error: (index):1 Access to XMLHttpRequest at 'https://imsoidc.bentley.com/.well-known/openid-configuration' from origin 'https://futureon-itwin-viewer-frontendvue.toc.systems' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Please could you advise on the solution to this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Has your development server been whitelisted (added to the list of allowed CORS origin and the redirect urls) in your oidc client config? If you setup your app using the Getting Started page, you can go to Dashboards > My Applications > Edit icon > and see list of all redirect uris currently configured for your app |
Beta Was this translation helpful? Give feedback.
-
It may take some time to replicate the configuration over different regions, and we've also seen some cases when the blocked response is being cached. |
Beta Was this translation helpful? Give feedback.
It may take some time to replicate the configuration over different regions, and we've also seen some cases when the blocked response is being cached.
I have checked the configuration, the
https://futureon-itwin-viewer-frontendvue.toc.systems
origin is in the list of allowed origins; Can you try again and see if it's still not working for you?