Image for Cross-Origin Resource Sharing

Cross-Origin Resource Sharing

Cross-Origin Resource Sharing (CORS) is a security feature that allows web servers to control which external websites can access their resources. When a website tries to request data from a different domain—like an app requesting data from another site—CORS determines whether the request is permitted. It helps prevent malicious websites from stealing or manipulating data by ensuring only trusted sources have access. Think of it as a permission system that manages and secures cross-site data exchanges, enabling safe integration of resources across different web domains.