<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00006yzRkNCAUOkta Classic EngineSingle Sign-OnAnswered2021-06-08T08:35:16.000Z2021-05-20T11:31:23.000Z2021-05-23T12:37:33.000Z

BhaskarR.71547 (Customer) asked a question.

SPA +WEB Integartion

Hi ,I have created React application (SPA in Okta) and Java Spring Boot application (WEB in Okta) in Okta its working fine in React ,when i hit UI url it is navigating okta sing in page and coming back to Home page and for Java API also its working fine ,when i hit API URL in browser its navigating to Okta sign in and coming back to api and its displaying response in browser.

Now the problem is when i call API in react application on button click am getting CORS issue browser not allowing to redirect to Okta from API (UI -API -Okta sign in ). How can I Integrate SPA and WEB .I tried Token validation but if i follow token validation its working through React App but if user hit API URL in browser its throwing unauthorized error because there is no token ..

Please help me how to handle this scenario


This question is closed.
Loading
SPA +WEB Integartion
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply