Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allowedHeaders configuration doesn't change #4

Closed
Emanuel-Palestino opened this issue Jul 7, 2023 · 2 comments
Closed

allowedHeaders configuration doesn't change #4

Emanuel-Palestino opened this issue Jul 7, 2023 · 2 comments

Comments

@Emanuel-Palestino
Copy link

Hi, I changed the cors config file in LEAF API with the following:

'methods' => 'GET,PUT,POST,DELETE,OPTIONS',
'allowedHeaders' => 'Content-Type,Authorization',
'credentials' => true,

/* ... Other default configuration */

But the Access-Control-Allow-Headers header in preflight request doesn't change, it always has '*' value (default configuration).

This is the response headers:
image

I'm changing the default configuration for use cookies, I don't know if there is other way.

I hope you can help me, thanks.

@mychidarko
Copy link
Member

I'll check on this issue @Emanuel-Palestino

@mychidarko
Copy link
Member

I just released a new version that should fix the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants