how to solve “no access control allow origin header is present on the” error in Laravel | CORS
4,661
Published 2018-04-12
Written tutorial: techpickups.com/a-quick-guide-to-fix-curl-error-60…
All Comments (9)
-
It works! ->header('Access-Control-Allow-Origin', '*') >header('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS') ->header('Access-Control-Allow-Headers',' Origin, Content-Type, Accept, Authorization, X-Request-With') ->header('Access-Control-Allow-Credentials',' true');
-
It is so helpful.Thank you!
-
I love you. Thanks!
-
THANK YOU SO MUCH
-
Thank you
-
Still not working and getting the same error message. may be there is a problem in my server configuration.
-
I am getting the cors when using the live server api but with same api from local host works fine why not working with live api? Please help I am trying from 3 days still not solved please help
-
I am not able to get access other api url. From this solutions i am only able get login url & the rest of the url which is in jwt auth. i am give same Cross origin error. Please give me solutions for this as soon as on urgent basis... Thanks