Code Monkey home page Code Monkey logo

Comments (2)

MMmaXingXing avatar MMmaXingXing commented on June 22, 2024

概念

同源策略是客户端脚本(尤其是javascript)的重要安全度量标准,它最早出自NetscapeNavigator2,其目的是防止某个文档或脚本从多个不同源装载。同源策略的内容主要是,协议,域名,端口相同,这是一种安全协议。同时也指,统一脚本只能访问同一来源的文档和文件。

意义

大大增强了浏览器页面访问的安全性,加入没有同源策略的限制,任何一个人都可以使用iframe嵌入一个银行登录页面(也可以是其他重要页面),当你输入时,他可以直接监听到你的输入值,并且直接窃取,会造成严重网络秩序混乱,也就不会有现在互联网的发展了。

from daily.

lamelamb avatar lamelamb commented on June 22, 2024

浏览器对文件资源的访问设下限制,同一网站只可以访问同一域中的资源, 协议,端口,主机任意一个不相同都不是同源

from daily.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.