Access to fetch at from origin has been blocked by CORS policy SOLVED in React JS

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

when i install cors and use it, it works fine for few refreshes in frontend but after 5-6 refresh it stops giving me data then i will restart the nodemon and the same procces happens and in my backend i am just sending string "hello" to make it more simple and know where the problem is but not working what do i do pls help me to solve this issue

jmxjnbm
Автор

I already have this code in my server files. While running it locally it works fine. But on deploying it gives the same error. Please deploy and let me know whether you still have the error or not.

themacosguy
Автор

thankyou sir after 1.5 Hours solved my problems

Cheerful_Toons