Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useMenu CORS in local #77

Closed
ambercit opened this issue Jan 26, 2022 · 4 comments
Closed

useMenu CORS in local #77

ambercit opened this issue Jan 26, 2022 · 4 comments

Comments

@ambercit
Copy link

useMenu in layout page

Access to fetch at 'http://local.nextjs.com:8888/jsonapi/menu_items/main' from origin 'http://localhost:3000' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
index.esm.js?84fa:186 GET http://local.nextjs.com:8888/jsonapi/menu_items/main net::ERR_FAILED

@shadcn
Copy link
Collaborator

shadcn commented Jan 26, 2022

@shadcn
Copy link
Collaborator

shadcn commented Feb 1, 2022

@ambercit did you figure this out?

@ambercit
Copy link
Author

ambercit commented Feb 9, 2022

@shadcn we solve by the links you offer,is this will support drupal layout build later

@shadcn
Copy link
Collaborator

shadcn commented Feb 9, 2022

@ambercit For Layout Builder we are currently blocked by this issue: Expose Layout Builder data to REST and JSON:API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants