Skip to content
Discussion options

You must be logged in to vote

Turned out the problem was based on cors issues.
(The dev server ran on the local network & I configured dnsmasq (which is installed on a raspberry pi acting as local dns server) to map the ip to a domain name.
The PAYLOAD_PUBLIC_SERVER_URL in the .env was adapted to match that name, which resolved cors issues for GET requests.
However, for other types (e.g. POST) the issue persisted silenently (no errors indicating cors issue were logged).
As a fix for now I added the domain in the csrf array of the payload.config.ts file. -
in case anybody else runs into a similar situation in the future.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jankohlbach
Comment options

Answer selected by markus9797
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants