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
Had a hunch that this could be an issue affecting the admin routes that we have extended entities and services for, like products, customers, orders but api routes that do not have extended entities and services like sales_channels and customer_groups also have the cors error .ie /admin/sales-channels like that.
The text was updated successfully, but these errors were encountered:
@kevinrobert3 are you getting the same issue with our admin panel as well? Can you please try with a newly created project and see if you are having issues? I'll close the ticket as it is unlikely a bug, but a misconfiguration on your side, let me know if the issue persists, or reach out on Discord for more help.
Bug report
Describe the bug
Admin routes like
/customers, /products, /orders
have a cors errorSystem information
Medusa version (including plugins):
Node.js version: v20.11.1
Database: Postgres
Operating system: MacOS
Browser (if relevant): Chrome
Steps to reproduce the behavior
localhost:3000/your port
to your medusa config fileadmin/products
admin/auth/token, admin/users , admin/users/{id}
and the api call will succeedExpected behavior
A 200 response from server with all routes
Screenshots
Screen.Recording.2024-03-25.at.03.07.27.1.1.mov
Code snippets
The below code will work
The below will have a cors error
Additional context
Had a hunch that this could be an issue affecting the admin routes that we have extended entities and services for, like
products, customers, orders
but api routes that do not have extended entities and services likesales_channels
andcustomer_groups
also have the cors error .ie/admin/sales-channels
like that.The text was updated successfully, but these errors were encountered: