Turn Laravel CORS into dynamic CORS management
2 min readApr 6, 2021
As stated, laravel-cors
package allows you to send Cross-Origin Resource Sharing headers with Laravel middleware configuration.
Every time you alter origins, ports, etc.. in the cors.php
, you need to push to git and if you have gitlab runner or any auto deployment script, it would be take sometimes to update in production.
The simplest answer is Cache.