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 am trying to use the below code to upload my file using Uppy. However, When I am trying to do that, I'm getting CORS origin error.
Output in console : [GIN] 2020/11/21 - 00:56:46 | 204 | 337.339µs | ::1 | OPTIONS "/files/"
This is the error I am getting in my browser's console : "'http://localhost:8080/files/' from origin 'http://localhost:3000' has been blocked by CORS policy: Request header field tus-resumable is not allowed by Access-Control-Allow-Headers in preflight response."
I used router.Use(cors.Default()) as well
I am trying to use the below code to upload my file using Uppy. However, When I am trying to do that, I'm getting CORS origin error.
Output in console :
[GIN] 2020/11/21 - 00:56:46 | 204 | 337.339µs | ::1 | OPTIONS "/files/"
This is the error I am getting in my browser's console : "'http://localhost:8080/files/' from origin 'http://localhost:3000' has been blocked by CORS policy: Request header field tus-resumable is not allowed by Access-Control-Allow-Headers in preflight response."
I used router.Use(cors.Default()) as well
The text was updated successfully, but these errors were encountered: