Cancel
Showing results for 
Search instead for 
Did you mean: 

MindSphere UI APP gets 302 ( redirect response).

Experimenter
Experimenter

I am running into an issue with my MindApp . It has a reactJs front end and java backend. When I do REST call to from ReactJS to my backend , I get 302 ( redirect) response and redirect url is the login url ( https://<app_name>.eu1.mindsphere.io/login). 

The backend app java security is disabled and the REST API call (GET) works from a browser tab, but not from App (reactjs).  

I came across Pivotal Cloud foundry articke talking about same issue ( https://community.pivotal.io/s/article/spring-boot-app-keeps-returning-http-status-code-302) 

 

Any clues/experience in this regard will help. 

 

thanks

 

1 REPLY 1

Re: MindSphere UI APP gets 302 ( redirect response).

Legend
Legend
Might it be that you are not correctly setting the XSRF protection token?

https://developer.mindsphere.io/concepts/concept-authentication.html#calling-apis-from-frontend