harttle.github.io icon indicating copy to clipboard operation
harttle.github.io copied to clipboard

2015/10/10/cross-origin

Open harttle opened this issue 7 years ago • 5 comments

Web开发中跨域的几种解决方案 | Harttle Land

http://harttle.land/2015/10/10/cross-origin.html

harttle avatar May 02 '18 18:05 harttle

window.postMessage方法需要HTML5支持,那么下面关于addeventlistener和IE8的小注也就没有意义了,毕竟IE8不支持HTML5
顺便Nginx反向代理也可以做跨域,需要在服务器加两行配置代码

By Meriky 2015-10-13T14:21:21Z

harttle avatar May 02 '18 18:05 harttle

nginx方法属于后端方法吧

By Aflext Yang 2016-01-12T09:16:29Z

harttle avatar May 02 '18 18:05 harttle

## 浏览器的同源策略

https://developer.mozilla.o...

https://html.spec.whatwg.or...

By xgqfrms 2017-02-24T00:48:42Z

harttle avatar May 02 '18 18:05 harttle

test

By Yang Jun 2018-04-13T17:44:02Z

harttle avatar May 02 '18 18:05 harttle

请教下,为什么img等有src的是被允许跨域的,img 可以携带cookie,还是泄露用户信息的

Liqiaomiao avatar Jan 10 '21 14:01 Liqiaomiao