Skip to main content

One post tagged with "cors"

View All Tags

Understanding and Resolving CORS Error

· 5 min read
Anand Techie
Software Developer, Frontend

What is CORS and CORS preflight?

Cross-Origin Resource Sharing (CORS) is an HTTP-based security mechanism controlled and enforced by the client (web browser) that allows controlled access to resources located outside of a given domain.

Generally, for security reasons, browsers forbid requests that come in from cross-domain sources. However, there could be cases where you want to overcome this and access cross-domain resources, and CORS makes this possible.