Skip to content

Preview's not working due to CORS error #94

@drewbaker

Description

@drewbaker

When trying to use Fuxt in preview mode, it is including cookies in the request. The backend needs to be ready to accept these, otherwise a CORS error is thrown.

For example, see this error in Firefox when trying to fetch a draft page:
Image

The problem is described here:
https://stackoverflow.com/a/69479005/503546

And the solution for WordPress WP JSON API is shown here:
https://stackoverflow.com/a/57951582/503546

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions