fruitcake / laravel-cors

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

Laravel-coros block after few hours randomly #516

Closed GEEQ closed 2 years ago

GEEQ commented 3 years ago

I'm running Laravel environment with Docker(php-fpm/nginx) the Cors works perfectly when I just start the docker-compose after few hours the cors start blocking the /login endpoint (sanctum) I should do a docker-compose down and docker-compose up -d to get the login authorized again

image

image

image

Already tried chmod -R 777 storage/ boostrap/cache and php artisan optimize:clear / config:clear / cache:clear

it's an issue relative to Laravel-CORS ?

GEEQ commented 3 years ago

Notice that i'm using nginx revese proxy

barryvdh commented 3 years ago

Are you handling the Vary headers correctly in your reverse proxy?