# CORS: Which Web Pages May Call Your API

A browser lets a web page read answers only from its own origin unless the other server allows it, and the cors package lets an Express API name the pages it allows, which protects people's browsers but never stops scripts and tools.

![Cheat sheet for CORS: Which Web Pages May Call Your API: A browser lets a web page read answers only from its own origin unless the other server allows it, and the cors package lets an Express API name the pages it allows, which protects people's browsers but never stops scripts and tools.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/c1b7e07240774a1a88a9556b0dc8d257.webp)

- Category: Node.js
- Level: Journeyman
- Tags: CORS, CORS in Express, nodejs, Preflight Request, Same-Origin Policy, web-development
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/node-security-cors-cheat-sheet
