fruitcake / laravel-cors

Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application
MIT License
6.27k stars 613 forks source link

Add "No Cross-Site requests" common problem #549

Closed antonioribeiro closed 1 year ago

barryvdh commented 2 years ago

I'm not sure this is a problem, it doesn't add the headers but it also isn't expected, right?

barryvdh commented 2 years ago

And I'm not sure it doesn't add the headers anyway, because the headers can be cached.

antonioribeiro commented 2 years ago

I tested it, it actually strips the header even if you try to force them. Could not send the header until I named it differently. Not sure if this will be like that on all browsers but at least in Chrome this is how it works.

Well, it's not really a problem, it's just a warning for people trying to test CORS on the same domain, so they know it will not work.

May save you one issue or two, but feel free to close it.