spatie / laravel-cors

Send CORS headers in a Laravel application
https://spatie.be/en/opensource/laravel
MIT License
603 stars 59 forks source link

Add custom forbidden response #19

Closed joshuanoyes closed 6 years ago

joshuanoyes commented 6 years ago

This PR adds the ability to specify the message and HTTP status code to be returned if a request is not allowed by a given profile. If no message or code are specified, the existing defaults are returned.

freekmurze commented 6 years ago

Thanks!