i faced XMLHttpRequest error.
i ask our backend dev to add this line header (’Access-Control-Allow-Origin: *’);
but he said that in the backend he didn’t use HTTPS or cookies
just consume the API in JSON normally
and the code is encrypted
he cants edit it
is there any way to fix it?
https://cors-anywhere.herokuapp.com/corsdemo
And add this into ur script tag in web/index.html
Then click this button
Open that url in the same browser u are running the flutter web app
i did exactly what u said dude. but i receive same error .damn it 🙁
Bummer… u sure is cors? Open chrome dev tools
Share the url of ur site
idk why when i oepn index.html in devtools that function gone
U have to add it in web/index.html
ahh i have to build in in real host? i was runing it in debug mode
yes i did this
Обсуждают сегодня