paint-brush
Understanding CORS: Why It's Important and How it Worksby@amrtcrypto
16,687 reads
16,687 reads

Understanding CORS: Why It's Important and How it Works

by Amr Tawfik3mOctober 28th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources on a web page to be requested from another domain outside the domain from which the first resource was served. A web page may freely embed cross-origin images, stylesheets, scripts, iframes, and videos. CORS works by adding HTTP headers to requests and responses that indicate whether the request or response is allowed to access the resources. The same-origin policy is a security measure that prevents a malicious script from accessing resources that the user of the page is not intended to have access to.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Understanding CORS: Why It's Important and How it Works
Amr Tawfik HackerNoon profile picture
Amr Tawfik

Amr Tawfik

@amrtcrypto

Software Engineer & Entrepreneur

L O A D I N G
. . . comments & more!

About Author

Amr Tawfik HackerNoon profile picture
Amr Tawfik@amrtcrypto
Software Engineer & Entrepreneur

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite