Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel api enable cors

//I always use an easy method. Just add below lines to publicindex.php file.
//You don't have to use a middleware I think.

header('Access-Control-Allow-Origin: *');  
header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS');
Comment

laravel api cors localhost issue

composer require fruitcake/laravel-cors
  
Comment

PREVIOUS NEXT
Code Example
Php :: bagisto package generator 
Php :: eloquent first 
Php :: html in php 
Php :: session forget laravel 
Php :: how run all seeder at once in laravel 
Php :: laravel model column default value 
Php :: vs code php tag shortcut 
Php :: laravel documentation updateOrCreate 
Php :: php Program to check if a given year is leap year 
Php :: laravel datatable addColumn not working 
Php :: laravel route with multiple parameters 
Php :: laravel has many with ids 
Php :: array join pgp 
Php :: how to wirte laravel dd function in php 
Php :: how to create constant in php 
Php :: laravel sharing image 
Php :: php integer 
Php :: php date 
Php :: PHP OOP - Static properties 
Php :: find substring php 
Php :: laravel middleware 
Php :: drop foreign key laravel 
Php :: global variable in laravel controller 
Php :: symfony form submit on refresh 
Php :: php file_get_contents html with special characters 
Php :: laravel collection get 
Php :: Securing form from possible sql injection 
Php :: get woocommerce my account page url 
Php :: laravel not run test 
Php :: php creating a subdomain automatically in cpanel 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =