cross-domain

Problems with window.postMessage on Chrome

牧云@^-^@ 提交于 2020-01-01 02:43:49
问题 I have been stuck on this for hours. I have a.html on http://example.com that contains an iframe with src to b.html on http://subdomain.example.com. a.html has some JS code to postMessage to the iframe. The code to postMessage is simple: iframe_window.postMessage('message', iframe_element.src) But this way, Chrome throws an error: Unable to post message to http://subdomain.example.com. Recipient has origin null. I have also tried: iframe_window.postMessage('message', 'http://subdomain.example

CORS policy on cached Image

早过忘川 提交于 2019-12-31 08:42:27
问题 In chrome 22 & safari 6. Loading images from s3 for usage in a canvas (with extraction as a primary intent) using a CORS enabled S3 bucket, with the following code: <!-- In the html --> <img src="http://s3....../bob.jpg" /> // In the javascript, executed after the dom is rendered this.img = new Image(); this.img.crossOrigin = 'anonymous'; this.img.src = "http://s3....../bob.jpg"; I have observed the following: Disable caches Everything works fine, both images load Then trying it with caches

Flash Socket Cross Domain Security Issue

▼魔方 西西 提交于 2019-12-31 05:27:05
问题 I made my flash FTP transfer using socket , but when putting it in HTML file i am getting cross domain error, i have tried with various possibilities but failed. Please help me if anybody know how to how to do socket policy in flash as3. My file is placed at root of my ipaddress and I have tried with following options 1) Security.loadPolicyFile('xmlsocket://ipaddress:80/crossdomain.xml') ; with 80 port 2) Security.loadPolicyFile('xmlsocket://ipaddress/crossdomain.xml'); without mentioning any

Flash doesn't connect to socket even though policy allows it

依然范特西╮ 提交于 2019-12-31 04:07:25
问题 In my Flash app, I'm connecting to my server like this: Security.loadPolicyFile("xmlsocket://example.com:12860"); socket = new Socket("example.com", 12869); socket.writeByte(...); ... socket.flush(); At port 12860 I'm running a socket policy server, which (according to this document) correctly serves up my policy like this: 00000000 3c 70 6f 6c 69 63 79 2d 66 69 6c 65 2d 72 65 71 <policy- file-req 00000010 75 65 73 74 2f 3e 00 uest/>. 00000000 3c 63 72 6f 73 73 2d 64 6f 6d 61 69 6e 2d 70 6f

<a> download attribute not working anymore

谁说胖子不能爱 提交于 2019-12-31 03:12:29
问题 I used to use this code to download resources: <a href='http://example.com' download> Download </a> Where example.com is another website (cross origin). But this is not working now , I tried Chrome - Opera - Mozilla and even Internet Explorer , But it's not working. 回答1: See https://caniuse.com/#search=download ("Known Issues" Tab) where it says: Firefox only supports same-origin download links. Chrome 65 and above only supports same-origin download links. IE does not support the download

Rewrite rule for WebAPI fails because of ExtensionlessUrlHandler

有些话、适合烂在心里 提交于 2019-12-31 03:04:31
问题 I am attempting to use IIS to rewrite requests from my ASP.net MVC 4 application to my ASP.net MVC 4 WebApi. From the client, I am using ajax to make calls back to the server which I would then like the server to rewrite the request to point to the webapi site. This should solve any cross domain issues if I can get it to work. I have installed URL rewrite, Web Farm Framework, ARR, and External Cache per this article: http://blogs.iis.net/wonyoo/archive/2011/04/20/how-to-install-application

javascript How to trigger native click action (replay event) later?

自古美人都是妖i 提交于 2019-12-31 02:08:46
问题 I'm using jQuery to bind to all links on the page (I'm using the 'click' event, but have tried various combinations of 'mousedown' and 'mouseup',together with bind() and live() to no avail). I can intercept the click no problem (with all the above methods). What I am trying to do is send some data via a GET request, and when it completes, allow the default click action to proceed. Since I am communicating accross-domain, I must use GET rather than POST, and so cannot make a synchronous call.

javascript How to trigger native click action (replay event) later?

这一生的挚爱 提交于 2019-12-31 02:08:05
问题 I'm using jQuery to bind to all links on the page (I'm using the 'click' event, but have tried various combinations of 'mousedown' and 'mouseup',together with bind() and live() to no avail). I can intercept the click no problem (with all the above methods). What I am trying to do is send some data via a GET request, and when it completes, allow the default click action to proceed. Since I am communicating accross-domain, I must use GET rather than POST, and so cannot make a synchronous call.

Cross Domain Javascript calls using iFrame

徘徊边缘 提交于 2019-12-30 11:09:20
问题 I want to have cross domain javascript call. 1: SiteA: www.sub1.foo.com 2: Open SiteB: www.bar.com in iframe from SiteA 3: Pass some value from SiteB to SiteA via javascript after some action in SiteB. Try 1: I followed this article and I followed #2 for my setup. But I keep getting errors: IE: Invalid Argument FF:Illegal document.domain value. Try 2: Followed this article. It works in FF. I can use window.parent.parent.MyFunction() but in IE I get "Permission Denied" error. Try 3: I even

Cross Domain Javascript calls using iFrame

拟墨画扇 提交于 2019-12-30 11:08:18
问题 I want to have cross domain javascript call. 1: SiteA: www.sub1.foo.com 2: Open SiteB: www.bar.com in iframe from SiteA 3: Pass some value from SiteB to SiteA via javascript after some action in SiteB. Try 1: I followed this article and I followed #2 for my setup. But I keep getting errors: IE: Invalid Argument FF:Illegal document.domain value. Try 2: Followed this article. It works in FF. I can use window.parent.parent.MyFunction() but in IE I get "Permission Denied" error. Try 3: I even