CORS issue while calling REST API #8278
Unanswered
madhavan421
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am building an application in tauri and angular. This application is going to interact with an ERP application using REST API. These REST API's are secured and allows connectivity only via JWT Token Bearer.
This ERP applicaiton is CORS protected. Now to get the JWT token we are calling to API's as below.
First api is getting XSRF-TOKEN, which we are passing as Header XSRF-TOKEN to second API, and if context is properly set then second api get us the JWT Token.
Above process works perfectly fine, when we disabling CORS on the ERP Application.
Can someone please guide me, now to resolve this issue in Tauri or Rust.
Beta Was this translation helpful? Give feedback.
All reactions