I launch Laravel server using:
php artisan serve
How in this case to set header:
Header set Access-Control-Allow-Origin "*"
If I dont use Apache?
I tried to add this line into .htaccess
:
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
Header set Access-Control-Allow-Origin "*"
But it does not work.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire