fruitcake / laravel-cors

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

how to return or expose these Access-Control-Allow-Methods and Access-Control-Allow-Headers ? #550

Open 360synertech-dev1 opened 3 years ago

360synertech-dev1 commented 3 years ago

Before you start

[X ] Update to the latest version by running composer update fruitcake/laravel-cors [ X] Make sure that Apache/nginx/Valet are NOT also adding CORS headers

I want to know how I can return these headers in the response?

  1. Access-Control-Allow-Headers
  2. Access-Control-Allow-Methods

only Access-Control-Expose-Headers and Access-Control-Allow-Origin these are returning right now I am using lumen 8 and the latest version of cors v2.0.4