前端跨域
发布日期:2021-05-13 21:12:49 浏览次数:19 分类:精选文章

本文共 1884 字,大约阅读时间需要 6 分钟。

��������������������������������������������������������������������������������������������������������������������������������������� XSS���������������������������������

���������������������������������������������������������������������������������������������������������������

  • http://www.123.com/index.html ������ http://www.123.com/server.php ������������������������������������������������������������������
  • ������������ http://www.123.com/index.html ������ http://www.456.com/server.php���������������������������������������������������
  • ��������������������� http://abc.123.com/index.html ������ http://def.123.com/server.php������������������������������������������
  • ������������������������������������������ http://www.123.com:8080/index.html ������������ http://www.123.com:8081/server.php ���������������
  • ������������������������http���https������������������������������

������������������������������������localhost���127.0.0.1���������������������������������������������������������������������������������������������

������������������ JavaScript ���������������������������������������������������������������������������������������������������������

������������������������������������

  • JSONP��������������������������� GET ������������������������������������������������ POST ������������������
  • ��������������������������������������������������� www.123.com/server.php���������������������������������������������������������
  • ���������������������������CORS��������������� PHP ��������������������������������� Access-Control-Allow-Origin:* ��� Access-Control-Allow-Method ��������������������������������������������������������� XHR2 ������������������
  • ������������������������������������������������������CORS ������������������������������������������������������������������������������������������������������ *������������������������������������

    上一篇:火车票飞机票,点击切换按钮切换出发城市和到达城市
    下一篇:vue项目安装node-sass和sass-loader

    发表评论

    最新留言

    关注你微信了!
    [***.104.42.241]2025年04月10日 15时45分39秒