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');
@phambang39285 жыл бұрын
It is so helpful.Thank you!
@gabrielyorramnsoaresdasilv83533 жыл бұрын
THANK YOU SO MUCH
@cguider67193 жыл бұрын
Glad it helped
@skullkid5 жыл бұрын
I love you. Thanks!
@466sunny3 жыл бұрын
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
@cguider67193 жыл бұрын
What is your live API and is that configured for enabling CORS?
@israrzaib46446 жыл бұрын
Still not working and getting the same error message. may be there is a problem in my server configuration.
@lalitiwari19855 жыл бұрын
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