Header Access-Control-Allow-Origin for static file in Laravel Sail

45 views Asked by At

I'm using Laravel Sail, and I need to have a static file inside my public directory to be served with the header 'Access-Control-Allow-Origin: *'.

But I don't know how to add this header in Laravel Sail since it does not use neither nginx nor apache (but php artisan serve). Is that possible?

Thank you.

0

There are 0 answers