Closed ViGrad closed 7 years ago
Just to helps things, here is a link to the MDN doc (french here). I need to further investigate this.
@ViGrad, are you sure you need to do the withCredentials
in the request? From what I've read, it allows to pass along all the cookies and some other things, but because we're doing it with JWT, that we should pass through a header field, then there is no need for cookies... At least I think.
To be clear, the spec doesn't allow requests withCredentials
if the server doesn't explicitly allow the server from where the request is coming from.
So we have two possibilities:
To me, the simplest one is obviously the first, even though the second, if done right, can be interesting.
Yeah that's it! Thank for this answer
@justinrlle @Shenrak
Well, I have a big problem of cross origin request. Here is an error text that I have when I try to request anything to the server:
I investigated a little bit, so I am almost sure that it is a server side problem