hossein motamen
hossein motamen

Reputation: 23

my changes on my Laravel config file does not work

I have been changing some configurations in my config/cors.php and these changes are saved and they been written in my bootstrap/config.php file, but it does not work.

For example I changed 'allowed_methods' from * to POST but GET method still work on my code(my code is on my local server).

I'm going to add a picture of my config/cors.php for you to see if I'm doing something wrong.

thanks.

my config/cors.php file

Upvotes: 0

Views: 746

Answers (1)

Usman Ali
Usman Ali

Reputation: 21

php artisan optimize:clear and then restart your localserver

Upvotes: 1

Related Questions