# CORS

*noun*

say it: **“KORZ”** **/kɔrz/** or **“SEE OH AR ESS”** **/ˌsi oʊ ɑr ˈɛs/**

Cross-Origin Resource Sharing: the rules a server sends with its answers to say which other websites' pages may read them in the browser.

## What is **CORS**?

**CORS** (Cross-Origin Resource Sharing) is how a server tells browsers which other websites may call it from JavaScript. Without the right headers, the browser blocks the response.

```text
Access-Control-Allow-Origin: https://www.example.com
Access-Control-Allow-Methods: GET, POST
```

## In a sentence

- “The request worked in Insomnia but failed in the browser, because the API's **CORS** rules didn't list my site.”
- “The Dog CEO API's **CORS** settings allow any website to fetch its photos.”

Level: Journeyman · [More REST API terms at this level](https://www.ask-codey.com/glossary?category=rest-api&level=3)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/cors
