medusa icon indicating copy to clipboard operation
medusa copied to clipboard

Demo store not fetching any items

Open salmanshahid7 opened this issue 2 years ago • 2 comments

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

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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

salmanshahid7 avatar Aug 11 '22 09:08 salmanshahid7

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?

richardwardza avatar Aug 11 '22 19:08 richardwardza

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: @.***>

salmanshahid7 avatar Aug 12 '22 04:08 salmanshahid7

Thanks for reporting it in. Issue has been resolved :)

olivermrbl avatar Aug 15 '22 11:08 olivermrbl