AI engineering glossary · Web APIs HTTP

What is CORS?

CORS (also called Cross-Origin Resource Sharing): Cross-Origin Resource Sharing is a browser mechanism by which a server states, through response headers, which other origins may call it from web pages. Without permission, browsers block the page from reading the response. It is enforced by browsers, not by scripts like curl.

Level: intermediateTopic: Web APIs HTTP

CORS: an example

An API sets Access-Control-Allow-Origin: https://myapp.in so only pages from myapp.in can read its responses.

Related terms

More Web APIs HTTP terms

Where you learn it

CORS is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.