#CORS in Laravel

2 messages · Page 1 of 1 (latest)

hybrid venture
#

this is my cors file
'paths' => ['foodly-api/api/', 'sanctum/csrf-cookie'],
'allowed_methods' => ['
'],
'allowed_origins' => [''],
'allowed_origins_patterns' => [],
'allowed_headers' => ['
'],
'exposed_headers' => [],
'max_age' => 0,
'supports_credentials' => false,

what is the problem?

obtuse bay
#

it looks like you are trying to fetch localhost from your origin localhost:4200. you need to set port when you fetch data