CORS preflight issue #2150
-
Hello everyone, I request from my front-end on localhost:3000 to umami on localhost:8080 The request works fine in Postman. fetch("http://localhost:8080/api/auth/login", {
method: "POST",
headers: {
"Content-Type": "application/json",
'Accept': '*/*',
"Access-Control-Allow-Headers": "*",
"Access-Control-Allow-Methods": "*",
"Access-Control-Allow-Origin": "*",
},
body: JSON.stringify(formState),
}) Originally posted by @RamaHerbin in #1952 (comment) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi, did you find a solution for that? |
Beta Was this translation helpful? Give feedback.
-
Same here. Seems like the auth endpoint didn't send any cors response. You can append a cors header on your server-side (nginx、openresty etc.) |
Beta Was this translation helpful? Give feedback.
Same here. Seems like the auth endpoint didn't send any cors response. You can append a cors header on your server-side (nginx、openresty etc.)