April 20, 2024, 2:24 p.m. | Shubh Sharma

DEV Community dev.to




Intro


When you use a Content Delivery Network (CDN) to host static assets for your website, like images or Javascript files, those files are being served from a different domain than your main website.


This difference in domain can cause security issues with modern web browsers.


Reason is that browsers hate it when you try to access some resources from a different server than your own website served from.


This is a policy of browsers called "Same origin policy". …

access assets beginners browsers can cdn content delivery cors delivery domain files host images javascript links main network programming security security issues web web browsers webdev website

Senior Security Engineer - Detection and Response

@ Fastly, Inc. | US (Remote)

Application Security Engineer

@ Solidigm | Zapopan, Mexico

Defensive Cyber Operations Engineer-Mid

@ ISYS Technologies | Aurora, CO, United States

Manager, Information Security GRC

@ OneTrust | Atlanta, Georgia

Senior Information Security Analyst | IAM

@ EBANX | Curitiba or São Paulo

Senior Information Security Engineer, Cloud Vulnerability Research

@ Google | New York City, USA; New York, USA