You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the correct headers are being returned for an OPTIONS request, I believe that they also need to be returned in the actual request response as well.
As an example, I am using the Access-Control-Allow-Credentials header, the OPTIONS request gets returned correctly, but the actual response does not. Here's the flow:
Then I get an error: XMLHttpRequest cannot load https://labellogiclive.jit.su/api/login. Credentials flag is true, but Access-Control-Allow-Credentials is not "true".
Looking at the server I can see it's returning a 200 OK response, but it never makes it to the browser. (I'm guessing that the error is generated prior to the response being logged)
The text was updated successfully, but these errors were encountered:
In response to a simple cross-origin request or actual request the resource indicates whether or not to share the response.
...
If the resource supports credentials add a single Access-Control-Allow-Origin header, with the value of the Origin header as value, and add a single Access-Control-Allow-Credentials header with the case-sensitive string "true" as value.
While the correct headers are being returned for an OPTIONS request, I believe that they also need to be returned in the actual request response as well.
As an example, I am using the
Access-Control-Allow-Credentials
header, the OPTIONS request gets returned correctly, but the actual response does not. Here's the flow:Then I get an error:
XMLHttpRequest cannot load https://labellogiclive.jit.su/api/login. Credentials flag is true, but Access-Control-Allow-Credentials is not "true".
Looking at the server I can see it's returning a
200 OK
response, but it never makes it to the browser. (I'm guessing that the error is generated prior to the response being logged)The text was updated successfully, but these errors were encountered: