Fix CORS POLICY No 'Access-Control-Allow-Origin' header | solved | 100% working

preview_player
Показать описание

But before that let me explain why you get cors policy Access-Control-Allow-Origin' header is present on the requested resource error while making the request, it happens because our frontend and backend application is not running on the same port and for security, our browsers generally do not allow sending a request on the application running on a different port and hence it results into cors policy Access-Control-Allow-Origin' header is a present error.

The solution of cors policy Access-Control-Allow-Origin' header is present on the requested resource error can be solved by 2 methods.

1- Disable cors policy by using this command

-----------------------------------------------------------------------------------
👍 Thanks for watching!
Make sure to like + Subscribe For More! ❤

-------------------------------------------------------------------------------------
🎵 Music
Song: Jarico - Island (Vlog No Copyright Music)
Music promoted by Vlog No Copyright Music.
Рекомендации по теме
Комментарии
Автор

You Are A life Saver, Thank you sooo much <3

ahmedmassalha
Автор

Excelente video, después de tantos videos visitados, fue el único que me ayudo, gracias!

liankatheringuevara
Автор

Thanks man the second method worked with me

ahmedelhelw
Автор

Hello, I followed your instructions for an MVC project, but I'm still encountering the same error.

nazlimervekilic
Автор

thanks so much. it's works for me

esperantkela
Автор

yeh deploy krdeingea website tb tou yeh error nhi aaega?

muhammadkhalidhussain
Автор

reallly did it, I wasted many hours to resolve this, Thankyou, May Allah Bless

zokgqpc
Автор

*Common Man we should never use this as it would disable the security, best is to use npm install cors, when working locally. Secondly, while deploying you are again going to face CORS issue*

themacosguy