-
Notifications
You must be signed in to change notification settings - Fork 23
XHR cookie problem when using qx serve #812
Comments
Do you use a "proper" web server in production, eg Apache or nginx? |
Sorry for the delay I missed the notification. |
Im confused because IU'm not sure I understand exactly what you're describing - what it sounds like you're saying is that when you use But it seems that you are also saying that if you use the As I understand it, the browser is not able to store cookies on the server at all; and as the webserver inside Sorry not be any more helpful, but if you could put together a working example that would help a lot |
Sorry about the confusion, I will try to make it clearer. We have no problem at all with our front being behind Nginx, everything is working the way it is supposed to work with Nginx and the build obtained with When we are using The strange parts is that this occurs only with queries emitted with In both cases the backend is hosted with Nginx/PHP and it's exactly the same backend. We suspected CORS problem but as far as we can tell we have no evidence it's CORS related (and it's working with This problem has been observed on two different setups : one being on Windows and the other on Linux. And again, as soon as we use the build produced with Thanks again for trying to understand ^^ |
one big difference between Please can you try What I don't understand still is where the cookie is coming from in the first place during development - |
I don't know why the answer of Derrell has disappeared because I think he was right. The problem may come from the difference between the builds, so I'll try your suggestion and let you know. |
Exactly.
How does that work then? Is the |
Yes, that's why we supposed it was a CORS issue, but a CORS issue won't explain the fact that it's working well with |
Please can you setup a reproducable test case? |
Hi,
We are experiencing an issue when running a code with
qx serve
. And the bug is not there when running a code built withqx deploy
The bug is the following : there is not "Cookie" header set on request that are build with
qx.io.rest.Resource
but when we are using aqx.io.request.Xhr
we have a "Cookie" headerIn both case we set the withCredentials parameter to "true" with something like :
Our code is working just fine in productions stage, the cookie is always there in all cases. But the exact same code is not working anymore with qx serve.
We actually think the bug started to occur when we upgrade node from 12 to 14 but we are not sure this is related.
Any idea ?
The text was updated successfully, but these errors were encountered: