Closed craigward closed 6 years ago
It turns out that I had a dd();
in one of my controllers, the one that handles http://faq-app.test/api/questions/most-viewed
. I put it there to initially find a problem I was having, but then saw the Failed to load http://faq-app.test/api/questions/most-viewed: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://faq-front.test' is therefore not allowed access.
message and assumed it was that.
Removing the dd();
solved the issue, but I am sure I haven't had the pre-flight message before if I dd();
a result out.
Hi,
I seem to be having an issue getting this to work on my development machine (Laravel, Laravel Valet, Vuejs). I have added the following to the default config file:
But, When my front-end (Vuejs via Axios) tries to conenct I get:
Failed to load http://faq-app.test/api/questions/most-viewed: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://faq-front.test' is therefore not allowed access.
Here is the network information
and
What am I doing wrong?