<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Browser on Shaowen Chen's Website</title><link>https://www.chenshaowen.com/en/tags/browser/</link><description>Recent content in Browser on Shaowen Chen's Website</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>&amp;copy;2016 - {year}, All Rights Reserved.</copyright><lastBuildDate>Tue, 13 Jun 2017 17:19:03 +0000</lastBuildDate><sy:updatePeriod>weekly</sy:updatePeriod><atom:link href="https://www.chenshaowen.com/en/tags/browser/atom.xml" rel="self" type="application/rss+xml"/><item><title>Same-Origin Policy and Cross-Origin Access</title><link>https://www.chenshaowen.com/en/blog/same-origin-policy.html</link><pubDate>Tue, 13 Jun 2017 17:19:03 +0000</pubDate><atom:modified>Tue, 13 Jun 2017 17:19:03 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/same-origin-policy.html</guid><description>1. Same-Origin Policy The same-origin policy is the cornerstone of browser security.
The definition of same-origin covers three aspects:
Same protocol Same domain Same port Scope of the restrictions:
Cookie, LocalStorage, and IndexDB cannot be read The DOM cannot be obtained AJAX requests cannot be sent Simply put, two URLs whose protocol, domain, and port differ in any way are not allowed to communicate with each other, and the scope covers reading each other&amp;rsquo;s cookies and DOM and sending AJAX requests.</description><dc:creator>WeChat Official Account</dc:creator><category>Frontend</category><category>Network</category><category>Security</category><category>R&amp;D</category><category>CORS</category><category>Learning</category><category>Browser</category></item></channel></rss>