Answers for "laravel disable cors"

PHP
4

disable register laravel

Auth::routes(['register' => false]);
Posted by: Guest on April-15-2020
1

enablequerylog laravel

\DB::enableQueryLog();

dd(\DB::getQueryLog());
Posted by: Guest on December-14-2020
0

laravel-cors

composer require fruitcake/laravel-cors
Posted by: Guest on January-11-2021
0

laravel cors enable

Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header always set Access-Control-Max-Age "1000"
Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"

RewriteEngine On
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=200,L]
Posted by: Guest on September-15-2021

Browse Popular Code Answers by Language