We've been experiencing a CORS issue when making a...
# community-help
e
We've been experiencing a CORS issue when making a request to our cluster. We also use axios for our system and have default overrides set which we think are conflicting with the typesense axios setup. Is there a chance that our setting for 'withCredentials' = 'include' is causing this?
k
Are you using Typesense Cloud or self hosting? Can you please post the exact error?
e
Typesense cloud I haven't got the whole error as we've moved on from here but I'll see if I can recreate it
I feel this is also affecting our ability to see hits. We are overriding the default axios behaviour for responses
Copy code
axios.interceptors.response.use((response) => {
  return response.data
})
k
I'm not familiar with axios but if you can provide a standalone example that show cases the issue that I can run, then I can see what's going wrong.
e
I should have been clear that we are using the typesense-instantsearch-adapter which appears to use axios for fetching
k
Can you post a screenshot of the error or a screencast of the issue?
e
Sorry, it looks like we've resolved it now. We created a separate instance of axios in our original system and therefore were only configuring the instance, not the entire axios package This seems to have fixed our issue. I'll write a readme addition for the typesense instant search package so that it's clear about the potential axios conflict.
k
That would be great 👍