Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Cannot set the same Access-Control-Allow-Headers values in apache setting? #541

Open
charleshenryhugo opened this issue Aug 23, 2021 · 1 comment

Comments

@charleshenryhugo
Copy link

I set Access-Control-Allow-Headers in apache conf as:
Header set Access-Control-Allow-Headers "X-Requested-With"

Then set the same value in laravel-cors config:
'allowed_headers' => ['X-Requested-With']

Then requests will be CORS blocked.

What't the reason of this?

@barryvdh
Copy link
Member

Either set them in Apache, or use this module. Not both.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants