CORS error when running Polar locally for contributing #6806
Unanswered
Manas-Kenge
asked this question in
Q&A
Replies: 1 comment
-
This is not a direct CORS issue. We clearly see the server returned an error 500, which in turn makes the browser unhappy. Check the logs in the terminal running the API backend to learn more about the error happening. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I’m running Polar locally for contributing and I’m hitting CORS errors when trying to create products or discounts from the frontend.
What I see
When creating a product (
src/hooks/queries/products.ts
):When creating a discount (
src/hooks/queries/discounts.ts
):Debugging done
CORS_ORIGINS
to"*"
→ still blocked by the browser.Additional notes
/v1/products/
,/v1/discounts/
).127.0.0.1:3000
and backend on127.0.0.1:8000
.Could you clarify if this is a misconfiguration on my side, or if there’s an issue with how CORS is applied on POST endpoints locally?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions