Skip to content
#

codebase

Here are 77 public repositories matching this topic...

simbo1905
simbo1905 commented May 7, 2018

If I look in config\cors.php it has a line:

'allowedOrigins' => env('CORS_ALLOWED_ORIGINS') ? explode(',', env('CORS_ALLOWED_ORIGINS')) : ['*'],

I was unable to get anything working until I had set an environment variable CORS_ALLOWED_ORIGINS to match the domain name where the frontend is. When I set that env var to be a string that matched the ORIGIN domain name then things worke

Improve this page

Add a description, image, and links to the codebase topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the codebase topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.