Skip to content

Glossary: JavaScript Basics

CORS

Also written: CORS policy, Cross-Origin Resource Sharing

A browser safety rule (Cross-Origin Resource Sharing) that restricts what a page can load from another origin. It blocks a page opened straight from disk from loading JavaScript modules, so the page must be served from a local web server instead.

Where the book teaches it

Related terms

Live PreviewES modules