官术网_书友最值得收藏!

Permissions required by JavaScript

Let's consider content scraping. You can write a content scraping script that reads the rendered DOM of an external URI and creates local DOM elements with the same content, without any special configurations.

But what if you first need to run a script on the external URI, for example, to find out whether the user is the same as on your local site? You cannot trigger that external script and return the results without cross-origin sharing via CORS or a similar method to get around the same-origin policy.

JavaScript data storage access is strictly limited by origin

JavaScript data stored in the browser as Local Storage, or in IndexedDB, is separated by origin. Each origin has distinct storage, and JavaScript in one origin cannot read from or written to storage belonging to another origin unless it is given explicit access to a script on another domain by CORS or a similar method.

主站蜘蛛池模板: 府谷县| 贵溪市| 正镶白旗| 太谷县| 潜江市| 大港区| 微山县| 神农架林区| 建阳市| 芦山县| 扶绥县| 凯里市| 祥云县| 锡林郭勒盟| 张家界市| 汶上县| 建瓯市| 清徐县| 柳河县| 鄂尔多斯市| 太仆寺旗| 杨浦区| 阿勒泰市| 镇远县| 嘉禾县| 榆树市| 任丘市| 沙雅县| 长沙县| 吐鲁番市| 绥中县| 星座| 永宁县| 怀化市| 鹿邑县| 葫芦岛市| 周至县| 焦作市| 营口市| 扎囊县| 卓资县|