Skip to content

CORS issue? #395

Answered by DanRibbens
ssyberg asked this question in Q&A
Dec 14, 2021 · 2 comments · 10 replies
Discussion options

You must be logged in to vote

The Access-Control-Allow-Origin header should be included automatically in the API after you have added it to your config.

Could you share what you you have in your Payload config for CSRF? Perhaps you're setting it as a string and not in a an array?
Could it be that you're using an env variable that isn't available with your deployment?

I'm happy to look if you have more info to share, thanks!

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
7 replies
@DanRibbens
Comment options

@ssyberg
Comment options

@ssyberg
Comment options

@jmikrut
Comment options

@ahmetskilinc
Comment options

Answer selected by ssyberg
Comment options

You must be logged in to vote
3 replies
@jmikrut
Comment options

@revnelson
Comment options

@dkonsoftware
Comment options

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