cross-domain

Same Origin Policy violated on localhost with falcon webserver

孤街浪徒 提交于 2019-12-12 01:59:10
问题 I am running an elm frontend via elm-reactor on localhost:8000 . It is supposed to load json files from a falcon backend running via gunicorn on localhost:8010 . This fails. The frontend is able to load static dummy files served by elm-reactor ( :8000 ) but when I try to replace the dummies by the actual backend ( :8010 ) it fails due to a missing header: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8010/api/sheets. (Reason:

Is it possible to bypass the cross-domain.xml requirement for an Adobe AIR application built with Flex?

两盒软妹~` 提交于 2019-12-12 01:53:20
问题 Is it possible for an Adobe AIR application to connect to a remove webservice that does not expose a cross-domain.xml file? If so, how do you configure the security sandbox within Air to allow this? I have attempted a socket connection and received the following error: securityErrorHandler: [SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048: Security sandbox violation: app:/MyApp.swf cannot load data from gmail.com:5222." errorID=0 ] 回答1:

Disable javascript's domain restrictions in FF 7.0

不打扰是莪最后的温柔 提交于 2019-12-12 01:48:44
问题 I am developing a small html + JS app for my own use and being ability to access IFrame's content or opened windows' contect with Javascript would greatly improve my productivity. Is it possible to disable the cross domain restrictions imposed by Firefox 7.0, so that I will be able to modify contents of what is displayed in an iframe? 回答1: I think I remember a similar issue a while ago in FF. This is worth a try: There's a file in your user profile called prefs.js. On my machine its located:

Cross domain Json parse to display in HTML using JQuery error

筅森魡賤 提交于 2019-12-12 01:37:35
问题 I did some research on how to parse Json into html with jsonp,because the json is on remote domain. But I can't figure out why is this error and how to handle it: Uncaught SyntaxError: Unexpected token : This is my code: $("document").ready(function() { var url = "http://demos.158.bg/football/apis/eplApiV1.php?action=getRoundListByLeagueID&leagueID=7"; $.getJSON(url + "?callback=?", null, function(jsonp) { $("#div-my-table").text("<table>"); $.each(data, function(i, item) { // doing some

CORS with Spring not working

混江龙づ霸主 提交于 2019-12-12 01:34:17
问题 I have this well-known issue with Access-Control-Allow-Origin in my Spring application. I use cross-domain request to read data from built in MongoDB database REST interface (for example : http:\localhost:28017\db_name\collection_name ). My javascript client (JSONP doesnt work :( ) is very similar to this one on this webpage : http://2rdscreenretargeting.blogspot.com/2012/06/enable-cors-for-jersey.html. I also use CORS Filter from this website : http://software.dzhuvinov.com/cors-filter.html.

cordova android cross domain issue

﹥>﹥吖頭↗ 提交于 2019-12-12 01:27:54
问题 I have a small app made in cordova using beacons plugins and I want to send get request to a given page once beacons are discovered; I cannot send get request to my server using below code with jsonp; I tried different options but none of them worked; $.ajax({ type: "GET", async: false, dataType: 'jsonp', jsonp: 'callback', jsonpCallback: 'callbackFunction', url: "http://xxx", crossDomain: true, success: function(json){ alert("success"); }, error: function(){ alert("fail"); } }); 回答1: I have

client from localhost:8880 calls server from localhost:8880 but gets Cross origin requests are only supported

浪子不回头ぞ 提交于 2019-12-12 01:25:42
问题 I have an html page with angular2 on url: http://localhost:8880/SupporTool/html/angular2/index.html# which call server on localhost:8880/SupporTool/Push/SelectMessagesAttributes how come i get Cross origin requests are only supported.. 回答1: one has to disable same origin policy in Chrome. It blocks all calls from localhost to itself. start chrome with the --disable-web-security flag 来源: https://stackoverflow.com/questions/39019403/client-from-localhost8880-calls-server-from-localhost8880-but

AJAX Status Code 0 with php proxy

落花浮王杯 提交于 2019-12-12 01:22:56
问题 I have this ajax web application I am developing that essentially calls the google moderator api using ajax and returns the result to do something with them. I know that AJAX cannot make cross domain requests itself so I have also put in a web server based php proxy using cURL to take in the URLs, make the request and send back the data. The problem I have is that no matter what I do, every request I make returns in a Http status code of 0. I am not entirely sure what a code of 0 really means

Same origin policy violated?

落爺英雄遲暮 提交于 2019-12-12 01:19:05
问题 Heh, I'm using jQuery AJAX Call to pull data from a self hosted webservice (same domain), but it always return 0, which indicates a cross domain problem. But this shouldn't be a problem. Any suggestions how to fix this? Thanks! Website running my Script http://www.mysite.com/facebook/el_login My AJAX Call: var data = 'username=' + username.val() + '&password=' + password.val() $.ajax({ url: "http://www.mysite.com/api/v01/account/exists.json", type: "GET", data: data, cache: false, complete:

How do I set a cookie for an iframe with a different domain?

跟風遠走 提交于 2019-12-12 01:16:21
问题 I need to construct a page that contains an iframe that in turn shows a page from an AWS service. Constructing a parent page that contains such an iframe is no problem. I need to access the DOM of the AWS page from the parent page but the Same Domain Policy prevents me from doing this so I have had to write code to serve as a proxy that fetches and returns the page HTML of the AWS service. So, my server returns the parent page which contains an iframe that in turn requests another page from