Closed lukadriel7 closed 2 years ago
As a temporary fix, I currently have to set the configuration in the buildAxiosFetch
method as
fetch: buildAxiosFetch(axios, (config) => {
config.withCredentials = true;
return config;
}),
I spent some time reading your report, and I'm not completely sure what your primary problem is. I have a couple questions:
axios.defaults.withCredentials
? It wouldn't surprise me if that was broken, it's not a pattern we use much.Hello,
I think it's the 1, lack of support for axios.default.withCredentials
.
It works while using axios only but not with axios-fetch. I unfortunately do not have a test case without graphql.
I currently do not have access to my computer unfortunately.
Hello, Thank you for the library, it is very useful. I encountered a problem I didn't have before, I unfortunately do not remember the last version of axios it worked with. basically, I am using this library to with my own axios instance and urql to fetch datafrom a graphql server without having to configure urql for csrf. I updated my dependencies to the latest versions today and tried to make some request but they all fail with an incorrect csrf token error. Checking the request headers showed that the X-XSRF-TOKEN header is not set for graphql post request, but normal axios request automatically set the header. I tried setting up an interceptor on the axios instance to log the config, but it also only works when making regular axios request.
Axios
urql
axios: v0.26 @lifeomic/axios-fetch: v3.0.0 @urql/vue: v0.6.1