cross-domain

How to get contentWindow of the frame after the change of its cross-origin source by a script?

ⅰ亾dé卋堺 提交于 2020-04-30 09:29:10
问题 I am developing a Chrome/Firefox extension, which is intended to be used only with my own Web-application that should semi-automatically process different Web-pages in a certain specific way. In the context of this question my application is just a single Web-page, containing a single iFrame , which source is initially from the same domain. When an application's user chooses the URL of a page to be processed, this URL is assigned as the new source of the frame. To process the chosen page,

How to get contentWindow of the frame after the change of its cross-origin source by a script?

扶醉桌前 提交于 2020-04-30 09:27:30
问题 I am developing a Chrome/Firefox extension, which is intended to be used only with my own Web-application that should semi-automatically process different Web-pages in a certain specific way. In the context of this question my application is just a single Web-page, containing a single iFrame , which source is initially from the same domain. When an application's user chooses the URL of a page to be processed, this URL is assigned as the new source of the frame. To process the chosen page,

How to get contentWindow of the frame after the change of its cross-origin source by a script?

南笙酒味 提交于 2020-04-30 09:27:22
问题 I am developing a Chrome/Firefox extension, which is intended to be used only with my own Web-application that should semi-automatically process different Web-pages in a certain specific way. In the context of this question my application is just a single Web-page, containing a single iFrame , which source is initially from the same domain. When an application's user chooses the URL of a page to be processed, this URL is assigned as the new source of the frame. To process the chosen page,

ExtJS 6.6.0 Enable CORS in form submit

痞子三分冷 提交于 2020-04-28 21:08:27
问题 How to enable Cross Domain in ExtJS 6.6.0 this.getForm().submit({ url: REST.API_DOMAIN + REST.API_ATTACH + data.id, scope: this, success: function(form, result) { console.info(result); }, failure: function(form, result) { console.info(result); } }); Although the REST API is fully cross-domain, ExtJS rejects the response. response headers HTTP/1.1 200 OK Date: Wed, 11 Jul 2018 11:41:36 GMT Server: Apache Content-Encoding: gzip Vary: Accept-Encoding Access-Control-Allow-Origin: * Access-Control

extjs form.submit failed due to “accessing a cross-origin frame”

本小妞迷上赌 提交于 2020-04-28 20:45:30
问题 In my extjs6 project I am uploading a file to my webapi. (using form... fileuploadfield) The file gets successfully uploaded and it is supposed to return a simple string list however even though the file gets uploaded properly, in my controller it ALWAYS returns FAILURE on form.submit. Reason..."Blocked a frame with origin "http://localhost:57007" from accessing a cross-origin frame." I believe I read somewhere that when I do form.submit it creates some kind of frame that causes the cross

extjs form.submit failed due to “accessing a cross-origin frame”

*爱你&永不变心* 提交于 2020-04-28 20:45:29
问题 In my extjs6 project I am uploading a file to my webapi. (using form... fileuploadfield) The file gets successfully uploaded and it is supposed to return a simple string list however even though the file gets uploaded properly, in my controller it ALWAYS returns FAILURE on form.submit. Reason..."Blocked a frame with origin "http://localhost:57007" from accessing a cross-origin frame." I believe I read somewhere that when I do form.submit it creates some kind of frame that causes the cross

Is there an equivalent for fetch's “credentials: 'include'” or XMLHttpRequest's “withCredentials” for WebSocket?

微笑、不失礼 提交于 2020-04-18 07:11:08
问题 I'm setting up a web service that provides both authentication and a WebSocket interface. The API of the server needs to be accessible cross-domain and still receive the cookie set for the server's domain. In fetch , this is possible with the option credentials: "include" and it works well. Is there an equivalent for WebSocket? Basically, I have a Node.js server running on a.com : let app = require("express")() // ... //headers app.use((req, res, next) => { console.log(req.headers) console

Is there an equivalent for fetch's “credentials: 'include'” or XMLHttpRequest's “withCredentials” for WebSocket?

故事扮演 提交于 2020-04-18 07:08:44
问题 I'm setting up a web service that provides both authentication and a WebSocket interface. The API of the server needs to be accessible cross-domain and still receive the cookie set for the server's domain. In fetch , this is possible with the option credentials: "include" and it works well. Is there an equivalent for WebSocket? Basically, I have a Node.js server running on a.com : let app = require("express")() // ... //headers app.use((req, res, next) => { console.log(req.headers) console

Is there an equivalent for fetch's “credentials: 'include'” or XMLHttpRequest's “withCredentials” for WebSocket?

怎甘沉沦 提交于 2020-04-18 07:08:20
问题 I'm setting up a web service that provides both authentication and a WebSocket interface. The API of the server needs to be accessible cross-domain and still receive the cookie set for the server's domain. In fetch , this is possible with the option credentials: "include" and it works well. Is there an equivalent for WebSocket? Basically, I have a Node.js server running on a.com : let app = require("express")() // ... //headers app.use((req, res, next) => { console.log(req.headers) console

Sending origin cookies in Cors not working with VideoJS

风流意气都作罢 提交于 2020-04-13 03:39:41
问题 I have the following subdomains: stream.example.com sub.example.com Both domains have SSL certificates and are valid. I am using videoJS 7.6.6 which has http_streaming library. On sub.example.com , there is a video tag which sets a dash manifest as source containing links to stream.example.com .VideoJS needs to include laravel cookies from sub.example.com when making a request to stream.example.com links but this is not happening and when i download the HAR result from developer console i see