laravel-cors icon indicating copy to clipboard operation
laravel-cors copied to clipboard

CORS configuration per route

Open BasvanH opened this issue 2 years ago • 1 comments

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

BasvanH avatar Oct 19 '21 18:10 BasvanH

No updates here? Some way to do it?

tmazza avatar Jul 10 '22 02:07 tmazza