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
I will need help in dealing with the cors error I am having when I try to upload images.
I am using Laravel for my API with authentication using Laravel Sanctum. This means that I have to set withCredentials to true in the simpleUpload option. So I have
But I still get cors error. I have tried adding 'Access-Control-Allow-Origin': '*' to the headers but it didn't work. However, every other request to the API works.
Any idea what I am missing?
The text was updated successfully, but these errors were encountered:
Hello @blowstack.
I will need help in dealing with the cors error I am having when I try to upload images.
I am using Laravel for my API with authentication using Laravel Sanctum. This means that I have to set
withCredentials
totrue
in thesimpleUpload
option. So I haveBut I still get cors error. I have tried adding
'Access-Control-Allow-Origin': '*'
to the headers but it didn't work. However, every other request to the API works.Any idea what I am missing?
The text was updated successfully, but these errors were encountered: