laravel-cors
laravel-cors copied to clipboard
CORS configuration per route
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
No updates here? Some way to do it?