[Vuejs]-Laravel Cors Access-Control-Allow-Origin

0👍

added ‘allowedHeaders’ => [‘Access-Control-Allow-Origin’, ‘*’],

Not sure what changed, but it fixed it

'supportsCredentials' => false,
    'allowedOrigins' => ['*'],
    'allowedOriginsPatterns' => [],
    'allowedHeaders' => ['Access-Control-Allow-Origin', '*'],
    'allowedMethods' => ['*'],
    'exposedHeaders' => [],
    'maxAge' => 0,

];

Leave a comment