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
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)?
The text was updated successfully, but these errors were encountered:
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
Maybe there is a filter to change this url to fallback to the WordPress Address (URL)?
The text was updated successfully, but these errors were encountered: