Skip to content

Upload error due to CORS policy (multiple values in header) #2

Description

@JesJehle

Hi, wir hatten es ja bereits davon. Hier noch mal der Fehler:

https://data.deadtrees.earth/api/v1/datasets' from origin 'http://localhost:5173' has been blocked by CORS policy: 
Response to preflight request doesn't pass access control check: 
The 'Access-Control-Allow-Origin' header contains multiple values 'http://localhost:5173, *', but only one is allowed. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Hier noch mal die codesanbox:

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions