AkashRajpurohit / Spell-IT

🧮 Flutter Game for improving your english vocabulary skills
MIT License
20 stars 6 forks source link

No 'Access-Control-Allow-Origin' header #8

Closed anassamii closed 2 years ago

anassamii commented 2 years ago

Hello, thanks for replying.

I still get this error :

Access to XMLHttpRequest at 'https://ms.akashrajpurohit.com/api/spell-it/level/Easy' from origin 'http://localhost:57465' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

It is a backend's problem.

AkashRajpurohit commented 2 years ago

Hey, I think this should work fine already on the app, are you trying to hit the API endpoint directly? If yes then may I ask the use-case around this?

anassamii commented 2 years ago

Once i run the app, I find the app’s logo with 4 levels (easy - medium - hard - extrem), but when I click on one of those levels, I get that error.

Le mer. 1 jui. 2022 à 16:59, Akash Rajpurohit @.***> a écrit :

Hey, I think this should work fine already on the app, are you trying to hit the API endpoint directly? If yes then may I ask the use-case around this?

— Reply to this email directly, view it on GitHub https://github.com/AkashRajpurohit/Spell-IT/issues/8#issuecomment-1143793591, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUU5VIKEBN26LTQHHQVLD23VM6CFNANCNFSM5XRDG5AA . You are receiving this because you authored the thread.Message ID: @.***>

AkashRajpurohit commented 2 years ago

Are you running the app but testing out locally or facing the issue in the released version of the app?

anassamii commented 2 years ago

Yes Im running the app locally, I have changed the link and the 2 files that you have changed.

Le jeu. 2 jui. 2022 à 09:57, Akash Rajpurohit @.***> a écrit :

Are you running the app but testing out locally or facing the issue in the released version of the app?

— Reply to this email directly, view it on GitHub https://github.com/AkashRajpurohit/Spell-IT/issues/8#issuecomment-1144620129, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUU5VINW2HBTI523ITARRZTVNBZPJANCNFSM5XRDG5AA . You are receiving this because you authored the thread.Message ID: @.***>

AkashRajpurohit commented 2 years ago

I have enabled CORS for this route, it should work now hopefully!

anassamii commented 2 years ago

Awesome, it worked ! Thank you :)

Le jeu. 2 jui. 2022 à 17:32, Akash Rajpurohit @.***> a écrit :

I have enabled CORS for this route, it should work now hopefully!

— Reply to this email directly, view it on GitHub https://github.com/AkashRajpurohit/Spell-IT/issues/8#issuecomment-1145070553, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUU5VIJXUMPNGXVO6VRBMKTVNDO23ANCNFSM5XRDG5AA . You are receiving this because you authored the thread.Message ID: @.***>

anassamii commented 2 years ago

Hello Akash,

Hope you are doing well.

I want to change the voice words.

Can you send me the backend code please ?

Best regards, Anas SAMII

Le ven. 3 jui. 2022 à 02:35, Akash Rajpurohit @.***> a écrit :

Closed #8 https://github.com/AkashRajpurohit/Spell-IT/issues/8 as completed.

— Reply to this email directly, view it on GitHub https://github.com/AkashRajpurohit/Spell-IT/issues/8#event-6732888952, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUU5VILX6FBVXLMDPKGUCNDVNFONHANCNFSM5XRDG5AA . You are receiving this because you authored the thread.Message ID: @.***>