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
Calling my development microservices with http://localhost/api the credentials cookies are sent. Setting it to production to run against https://api.server/api it doesn't send the cookies any more.
First I thought it was due to this, but by deactivating it in "plugin.template.js" it is still not working:
axios.interceptors.request.use(config=>{// if (config.withCredentials === undefined) {// if (!/^https?:\/\//i.test(config.url) || config.url.indexOf(baseURL) === 0) {config.withCredentials=true// }// }returnconfig});
Can anyone give me a hint how you are calling your microservices api?
This question is available on Nuxt.js community (#c42)
The text was updated successfully, but these errors were encountered:
Hi. While my answer would not be exactly your question, but i HIGHLY recommend using proxy module for your microservice deployments as it resolves problems with credentials and CORS. A little guide on usage is at the end of docs.
About your question: I think CORS header should be enabled to make XHR working ...
Calling my development microservices with http://localhost/api the credentials cookies are sent. Setting it to production to run against https://api.server/api it doesn't send the cookies any more.
First I thought it was due to this, but by deactivating it in "plugin.template.js" it is still not working:
Can anyone give me a hint how you are calling your microservices api?
The text was updated successfully, but these errors were encountered: