medusa
medusa copied to clipboard
Demo store not fetching any items
Bug report
CORs is blocking access to APIs so unable to fetch any data.
Describe the bug
Access to XMLHttpRequest at 'https://api-demo.medusa-commerce.com/admin/users' from origin 'https://demo.medusajs.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
System information
Medusa version (including plugins): Node.js version: Database: Operating system: Browser (if relevant):
Steps to reproduce the behavior
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
A clear and concise description of what you expected to happen
Screenshots
If applicable, add screenshots to help explain your problem
Code snippets
If applicable, add code samples to help explain your problem
Additional context
Add any other context about the problem here
Hi @salmanshahid7 - have you done the steps n the docs: https://docs.medusajs.com/usage/configurations#admin-cors and https://docs.medusajs.com/usage/configurations#storefront-cors
do they help?
I'm talking about your store demo. That should be working out of the box.
https://demo.medusajs.com/ Sorry if that wasn't clear
Thanks, Salman
On Fri, Aug 12, 2022 at 12:40 AM Richard Ward @.***> wrote:
Hi @salmanshahid7 https://github.com/salmanshahid7 - have you done the steps n the docs: https://docs.medusajs.com/usage/configurations#admin-cors and https://docs.medusajs.com/usage/configurations#storefront-cors
do they help?
— Reply to this email directly, view it on GitHub https://github.com/medusajs/medusa/issues/2035#issuecomment-1212413382, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZEMDW3NESVGKK2KONT5UZTVYVJLXANCNFSM56HQLLVA . You are receiving this because you were mentioned.Message ID: @.***>
Thanks for reporting it in. Issue has been resolved :)