Custom Access-Control-Allow-Headers #4384
dkonsoftware
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to find solution myself and I saw this question couple times with no answer so Im posted here. If you need to add custom allowed headers to Payload, I believe the correct approach is to add a postMiddleware function in payload.config.ts to extend the headers currently provided by Payload.
Just add the following code to payload.config.ts and change x-custom-header to yours.
Beta Was this translation helpful? Give feedback.
All reactions