Ionic 3 cors issue .....laravel 5.7 with ionic 3

#1

hi
i have problem and i can not find slotion for it now
help ?
what can i do to fix this !!!

my code in
“name”: “appname”,
“integrations”: {
“cordova”: {}
},
“type”: “ionic-angular”,

“proxies”: [
{
“path”: “/api”,
“proxyUrl”: “http://xxxxxxxxxxx.ipage.com/g/public/
}
],
“pro_id”: “id”
}

in laravel i am using cors plugin

#2

Hi @alimuhnad :wave:

You’re sending the Access-Control-* headers in the request from the app, but they have to be sent by the server in the response for CORS to work. That is what the error in the Dev Tools is telling you.

Best,
Rodrigo

#3

hi @ FdezRomero thank you for respons to me
but i really tryed every thing and its not working
i am using laravel how can i make the server send Access-Control-* ???

#4

@alimuhnad Sorry, I’ve never used Laravel so I have no idea how can you make it send the right headers. Since this is an Ionic forum, maybe you’ll have better luck if you ask to the Laravel community or do a Google search.

Best,
Rodrigo