Forum Discussion

kumardeva's avatar
kumardeva
Visitor
4 years ago

withCredentials i only sent for swagger.json but not for subsequent requests using swagger-ui-react

My scenario is as follows:

1. My react application is already authenticated with my server using authorization_code flow.

2. I am using swagger-ui-react.

3. My jsx looks like this:

return <SwaggerUI url{url} withCredentials={true}/>
 
4. I can see that the withCredentials is sent for the initial call to get the swagger.json
5. But the withCredentials flag is not sent on requests for the routes themselves,
 
I am hoping the answer is that I am not setting this correctly or missing another configuration.
 
Thanks in advance.
Cheers...
Deva
No RepliesBe the first to reply