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

Cant work with gutenberg if site address diff #16266

Closed
drosendo opened this issue Jun 24, 2019 · 1 comment
Closed

Cant work with gutenberg if site address diff #16266

drosendo opened this issue Jun 24, 2019 · 1 comment

Comments

@drosendo
Copy link

I'm using Laravel as front-end and WordPress as back-end. The url's different. Site Address (URL) from WordPress Address (URL).
Gutenberg works fine and loads the information, but it cannot save.

Access to fetch at 'http://laravel-site/wp-json/wp/v2/pages/127?_locale=user' from origin 'http://wordpress-backoffice' 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.

Additional context

  • Note there is no CORS issue the front-end is simply not WordPress to return the proper response.

Maybe there is a filter to change this url to fallback to the WordPress Address (URL)?

@drosendo
Copy link
Author

drosendo commented Jun 24, 2019

Same issue as #1761

The solution: #1761 (comment)

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

1 participant