Learn Backend Development Part-Time, Online
PowerBI Data Analyst - Create visualizations and dashboards from scratch
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course explains Cross-Origin Resource Sharing through code examples, showing how browsers handle same-origin requests, CORS headers, and preflight OPTIONS requests. It demonstrates diagnosing and fixing common origin and request-header errors with a simple web server.
Syllabus
intro
Direct same origin access
No 'Access-Control-Allow-Origin' header is present
The ‘Access-Control-Allow-Origin' header has a different value from the origin
OPTIONS 405 Method not Allowed Preflight failed
Response to preflight request did not pass No 'Access-Control-Allow-Origin' header is present
Request header field “Content-Type” is not allowed
Taught by
Hussein Nasser