fruitcake / laravel-cors

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

Support for specify a domain in paths #514

Closed yojnc closed 3 years ago

yojnc commented 4 years ago

Now you can specify a domain in paths in config by adding host as a key of "paths" array, and value as array of endpoints. Or use it at it was

chineselegend commented 3 years ago

we need this please merge...

barryvdh commented 3 years ago

This needs to Vary the Origin header though. And shouldn't the global ones be added to the domain specific ones?