fruitcake / laravel-cors

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

CORS configuration per route #547

Open BasvanH opened 3 years ago

BasvanH commented 3 years ago

Hello,

We are building an app where we need to have a separate CORS configuration per route.

GET /api/forms/{form}
POST /api/forms/{form}

Depending on the form ID we need a corresponding CORS config to allow only a certain domain. Perhaps the settings will come from a DB table instead of the .ENV file.

Currently this package can't do this, but could you give me some directions on how to get this done?

Kind regards, Bastiaan

tmazza commented 2 years ago

No updates here? Some way to do it?