cross-domain

Cross-domain jQuery Ajax not working in IE9

本秂侑毒 提交于 2019-12-22 14:02:12
问题 I'm trying to access a REST web service using jQuery. The service has correctly got Access-Control-Allow-Origin set to * according to Firebug, and there are no problems accessing it with Chrome/Firefox. However, in IE it doesn't work. I've looked through plenty of the variations of this question that have already been posted, but so far none of the solutions have worked for me. Here is my code (simplified the success/failure function contents for ease of reading): $.support.cors = true; $

Respond.js on Subdomain using Tumblr

江枫思渺然 提交于 2019-12-22 12:26:38
问题 My website is responsive. The blog section uses a subdomain pointing to Tumblr, but the cross-domain version of Respond.js isn't working. I'm doing this: <script src="http://www.stevechab.com/scripts/respond.min.js"></script> <link href="http://www.stevechab.com/scripts/respond-proxy.html" id="respond-proxy" rel="respond-proxy"> <link href="http://www.stevechab.com/scripts/respond.proxy.gif" id="respond-redirect" rel="respond-redirect"> <script src="http://www.stevechab.com/scripts/respond

crossdomain.xml for jQuery?

醉酒当歌 提交于 2019-12-22 11:17:20
问题 I have a blog that's hosted on Tumblr. I have a separate host where I store all the images, js, css, etc for the theme that I made. However, I am also using QueryLoader2 to somehow add a "preloader" for the blog (aka the page will only display a loading bar until everything has loaded). The problem is, I'm running across Access-Control-Allow-Origin problems since the images and resources are on a different domain. Having experience with flash before, I remember that there is a crossdomain.xml

PHP Sessions across sub domains 2

大城市里の小女人 提交于 2019-12-22 11:07:14
问题 This is a complement of PHP Sessions across sub domains I tried what is indicated on that question, and I see that the issue wasn't given. So I need to have sessions across sub-domains ( www.example.com to forum.example.com ) What I did on www.example.com is session_name("a_name"); session_set_cookie_params(0, '/', '.example.com'); session_start(); echo session_id(); $_SESSION['test'] = 123; On forum.example.com session_name("a_name"); session_set_cookie_params(0, '/', '.example.com');

Same origin policy on mobile apps

白昼怎懂夜的黑 提交于 2019-12-22 10:29:18
问题 I've been researching this issue and I can't find an answer that satisfies me. I'm very aware of the same origin policies as they apply to websites in a standard web browser. My question came up when I started developing a mobile app that uses the native webview and loading in site content with jQuery's .load method. Typically in a standard web browser I would get an XHR load error. So, what are the rules regarding native apps and cross origin policies? 回答1: Robot Woods is definitely on the

Cross domain problems with WSO2 API Manager

瘦欲@ 提交于 2019-12-22 07:05:56
问题 We have develop some APIs for a client and we have published them through API Manager. We have provided the client with some code examples on PHP which work fine. The only problem is that they are using those APIs through AJAX in a different domain to the one associated with AM. Is this a cross domain problem? I have tried setting the apache server in front of API Manager with the following headers, so that cross domain is allowed Access-Control-Allow-Credentials: true Access-Control-Allow

cross domain XMLHttprequest

♀尐吖头ヾ 提交于 2019-12-22 06:47:11
问题 Here is my situation: I have a Webserver machine, Client machine, and a third machine running some program that listens for XMLHttpRequests. Client accesses the Webserver from the Client machine, makes some changes, and then clicks on'Save'. At this point, data is being sent back to the Webserver and to the Third machine. All of this is being done using Javascript and XMLHttpRequest object. The post to the Webserver works fine, however post to the Third machine does not work, since it had a

Cross Origin Chrome Extension

孤者浪人 提交于 2019-12-22 06:38:05
问题 I have been reading and playing around with Chrome Extensions for the last week or so but I'm having trouble trying to achieve what I want. What I am trying to create is an Extension that in the background (or silently) visits a website fills out a form on the web page and retrieves the response. The website doesn't have an API and I can't create a server to do this as the website only allows X requests per IP per hour so my requests would be exhausted after a few users. So my idea was to

How do I allow Cross-Origin Requests from greasemonkey scripts in Firefox?

☆樱花仙子☆ 提交于 2019-12-22 06:36:14
问题 I'm developing a Greasemonkey script that implements a couple of tools onto a webpage. This script makes a request for data from http://localhost/chess/heartbeat.php Now currently in Firefox I am getting this console error which totally stops my jQuery AJAX request for data. Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost/chess/heartbeat.php. This can be fixed by moving the resource to the same domain or enabling CORS. I am able

iframe cross domain messaging with jQuery postMessage plugin

喜夏-厌秋 提交于 2019-12-22 03:54:12
问题 I am trying to communicate between a child iframe and its parent using the following plugin: http://benalman.com/projects/jquery-postmessage-plugin/ I can follow the example and post a message from the child to the parent but not the other way and i really need to be able to communicate both ways. The code on the parent is as follows: var origin = document.location.protocol + '//' + document.location.host, src = origin + '/Custom/Ui/Baseline/html/iframe-data-cash.htm#' + encodeURIComponent