Cross-Origin Resource Sharing (CORS) is a security mechanism enforced by web browsers to restrict cross-origin HTTP requests. It ensures that resources (such as APIs) are only accessed from the same origin, preventing unauthorized access to sensitive data. When developing a Phoenix app that communicates with external APIs or allows cross-origin requests, you may encounter CORS errors.