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

Information Security Engineers

@ D. E. Shaw Research | New York City

Technology Security Analyst

@ Halton Region | Oakville, Ontario, Canada

Senior Cyber Security Analyst

@ Valley Water | San Jose, CA

Security Operations Manager-West Coast

@ The Walt Disney Company | USA - CA - 2500 Broadway Street

Vulnerability Analyst - Remote (WFH)

@ Cognitive Medical Systems | Phoenix, AZ, US | Oak Ridge, TN, US | Austin, TX, US | Oregon, US | Austin, TX, US

Senior Mainframe Security Administrator

@ Danske Bank | Copenhagen V, Denmark