cross-domain

Access an element inside a dynamically-created, cross-domain iFrame? [duplicate]

六眼飞鱼酱① 提交于 2020-01-03 04:46:12
问题 This question already has an answer here : Userscript to hide a child node of a cross-domain iframe (1 answer) Closed 4 years ago . I want to access an element inside an iFrame, but because of the way the iFrame is being called, I am not succeeding. This is the target page (www1.k9webprotection.com/...). The iframe is on a different subdomain: <iframe src="http://license.k9webprotection.com/..." ...></iframe> Setting a timeout or an event listener for when the iframe is loaded, did not help.

Shopify API Cross Domain Ajax Request

你离开我真会死。 提交于 2020-01-03 04:10:16
问题 I am using the below code to get the customer details from shopify. I have redirected my domain to the other domain from the shopify admin. function setEmailWithLoggedInUser(callback) { $.ajax({ url: 'https://new-website-shopify.myshopify.com/admin/customers/'+__st.cid+'.json', crossDomain: true, beforeSend: function(xhr) { xhr.setRequestHeader("Authorization", "Basic XXXXXXXXXXXX") }, success: function(data){ console.log(data); if(callback) callback(); } }) I have done a lot of work around

Cross domain using window.name — double onload should be used?

点点圈 提交于 2020-01-02 20:44:40
问题 I'm struggling with myself to figure out why my code works in a specific way ( rather than the other way) : +----------------------------+ | jsfiddle | | | | +---------+ | | | | | | | jsbin | | | +---------+ | +----------------------------+ Goal : jsfiddle should connect to jsbin and jsbin should return data to jsfiddle using window.name ( cross domain technique). (Again --the code is working) jsbin's response is a Html page with : <script> window.name = 1*(new Date()); </script> And here is

Cross domain using window.name — double onload should be used?

假装没事ソ 提交于 2020-01-02 20:44:38
问题 I'm struggling with myself to figure out why my code works in a specific way ( rather than the other way) : +----------------------------+ | jsfiddle | | | | +---------+ | | | | | | | jsbin | | | +---------+ | +----------------------------+ Goal : jsfiddle should connect to jsbin and jsbin should return data to jsfiddle using window.name ( cross domain technique). (Again --the code is working) jsbin's response is a Html page with : <script> window.name = 1*(new Date()); </script> And here is

Rail, ajax and iframe in Safari

╄→гoц情女王★ 提交于 2020-01-02 11:23:58
问题 In our application we have some elements that work with ajax. We offer users to embed parts of the app in an iframe. Everything work fine in Chrome and Mozilla. In Safari we get 422 error, and the server log looks like this: 2015-07-15T08:26:06.818885+00:00 app[web.1]: Completed 422 Unprocessable Entity in 4ms 2015-07-15T08:26:06.815411+00:00 app[web.1]: Can't verify CSRF token authenticity 2015-07-15T08:26:06.823389+00:00 app[web.1]: ActionController::InvalidAuthenticityToken

Rail, ajax and iframe in Safari

梦想与她 提交于 2020-01-02 11:23:29
问题 In our application we have some elements that work with ajax. We offer users to embed parts of the app in an iframe. Everything work fine in Chrome and Mozilla. In Safari we get 422 error, and the server log looks like this: 2015-07-15T08:26:06.818885+00:00 app[web.1]: Completed 422 Unprocessable Entity in 4ms 2015-07-15T08:26:06.815411+00:00 app[web.1]: Can't verify CSRF token authenticity 2015-07-15T08:26:06.823389+00:00 app[web.1]: ActionController::InvalidAuthenticityToken

ajax call to jax-rs with jquery issue

两盒软妹~` 提交于 2020-01-02 10:25:11
问题 I'm trying to call a Webservice that consumes a json object with post method .I did it then It wont work again don't know what is the problem. here is my method @POST @Path("/post") @Consumes("application/json") @Produces("application/json") public Response testClient(Client c) throws IOException { System.out.println(c.getAdresseCl()); ResponseBuilder builder = Response.ok(c.getAdresseCl()); builder.header("Access-Control-Allow-Origin", "*"); builder.header("Access-Control-Max-Age", "3600");

SECURITY_ERR: DOM Exception 18 ONLY IN Safari

痞子三分冷 提交于 2020-01-02 08:30:08
问题 i got two servers (prod.example.com and img.example.com) so on "prod" i process images from "img" using canvas in FF and Chrome all is Ok but in Safari i got this SECURITY_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent. all images from "img" has Access-Control-Allow-Origin:* in headers so where is padla? 回答1: getImageData which you probably call will raise this if you try to access the one host from the other. You cannot go around this, the

Selenium - Cross domain and HTTPS problem

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-02 07:21:08
问题 I use Selenium to test my website. The website need to access an external catalog to select some items from it. The problem is this catalog is published on another domain with HTTPS protocol. I've searched and read many topics on the internet about Selenium and Cross domain problems, but I still don't find the answer yet. Some topics said that the *iehta browser will overcome this issue, but in fact it could not do that. I also try *iexplore, *iexploreproxy, *firefox, *firefoxproxy as well,

Selenium - Cross domain and HTTPS problem

浪尽此生 提交于 2020-01-02 07:21:05
问题 I use Selenium to test my website. The website need to access an external catalog to select some items from it. The problem is this catalog is published on another domain with HTTPS protocol. I've searched and read many topics on the internet about Selenium and Cross domain problems, but I still don't find the answer yet. Some topics said that the *iehta browser will overcome this issue, but in fact it could not do that. I also try *iexplore, *iexploreproxy, *firefox, *firefoxproxy as well,