cross-domain

Asp.net web API 2 separation Of Web client and web server development

浪尽此生 提交于 2019-12-24 08:29:13
问题 Our web application is developed by 2 teams. One team works on the client side, with it's own Branch for development, and the other works on the server side, also with it's own development branch. The client and the server are running separately, each one as a website on a different port. The websites are hosted over IIS Express during development, and in production they will run over IIS. Our ideal situation is that each team can develop completely separately and whenever a develop session

How/where to enable CORS(cross origin resource sharing)?

泪湿孤枕 提交于 2019-12-24 07:59:22
问题 I am not able to access cross domain resources from my javascript file using XMLHttpRequest() . I understand that there are a few similar questions, I went through some of them but I have a bit of confusion regarding some of the details. I will mention my exact Setup and my specific doubts. Setup: I have my HTML and JS files on an apache server running on a ubuntu machine present in my local LAN network . The application is bascially hls plugin for video.js. From my windows PC in the same

How to set WebSocket Origin Header from Javascript?

时光怂恿深爱的人放手 提交于 2019-12-24 07:22:49
问题 I'm trying to use javascript to make a websocket request from a local test.dev page to a server running at ip 123.123.123.123 on behalf of test.com . The request goes through, but the 123.123.123.123 server sees the Origin: test.dev header in the websocket request and rejects the connection because it wants to see Origin: test.com . Here is the javascript code for connecting the socket: ws = new WebSocket("123.123.123.123"); How can I use javascript to start a websocket connection with a

Issue with passing querystring parameters via Http Get to an iframe in IE

你离开我真会死。 提交于 2019-12-24 05:38:07
问题 This is a follow up to my previous question: Problem passing parameters via Iframe in IE. Which was never solved. Here's the core of it: I'm trying to execute an HTTP GET from my website to another website that is brought in via iframe. On Firefox, you can see in the source that the correct url is in the iframe src along with it's correct parameters-- and it works. On IE, you can see in the source that the correct url is in the iframe src along with it's correct parameters-- and it doesn't

XHR cross-domain error on the same domain (localhost)

一曲冷凌霜 提交于 2019-12-24 04:33:24
问题 Explanation: I have a small web application running on apache server on a machine that uses javascript to do some XHR's. For a long time it worked with no problems, today all the XHR's stopped working but only on localhost, if you access it from outside it works perfectly. Problem: Using mozilla firefox, firebug warns: "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:3581/datasnap/rest/TdssMloteamento/getLoteamento/true/ . This

Firefox does not accept Access-Control-Allow-Origin: *

这一生的挚爱 提交于 2019-12-24 03:08:11
问题 I want to allow access to all origins on my server, but my AJAX requests from http://localhost:8100/ in Firefox keep being rejected. header("Access-Control-Allow-Origin: *"); // allow the use of requests in development (ionic serve in web browser). header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS"); header("Access-Control-Max-Age", "3600"); header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Authorization");; "Cross-Origin Request Blocked

Run PHP script without webpage waiting for it to finish

淺唱寂寞╮ 提交于 2019-12-24 02:44:13
问题 I have some basic website tracking software that sends a JSON object with jQuery AJAX from a webpage cross-domain to a server where the data is processed by a php script. This is triggered on window.onbeforeunload . When benchmarking my php script I have realised that the client website on a different domain is still waiting for the php script to finish running before loading the next page. For example, a visitor to a client site navigates to another page. We send the JSON object cross domain

canvas cross domain pixel error

雨燕双飞 提交于 2019-12-24 02:42:16
问题 I'm having this issue with the html5 canvas. I'm using EaselJS to load in images. http://www.createjs.com/Docs/EaselJS/Bitmap.html But when I add any kind of mouse events (onClick, onMouseOver, onMouseOut) on a parentcontainer of the image, from the moment i move my mouse, EaselJS spams this error: uncaught exception: An error has occurred. This is most likely due to security restrictions on reading canvas pixel data with local or cross-domain images. It's running on an IIS server and the

How to use multiple values with jQuery ajax dataType?

狂风中的少年 提交于 2019-12-24 02:23:47
问题 I should request the data as jsonp to perform cross domain request. But actual result returned is json like {"q":"iphone","r":["iphone 5","iphone","обмен на iphone","iphone 4","iphone 5s"]} . I've tried to use multiple values in dataType like: $.ajax({ url: url, type: 'GET', dataType: 'jsonp json', jsonp: false, ... but it returns parsererror (the same as just with jsonp ). I also tried to do the call with and without callback : $.ajax({ url: url, type: 'GET', dataType: 'jsonp json', cache:

Django csrf cookie not set for sub domain when accessed in iframe on third party site

老子叫甜甜 提交于 2019-12-24 00:42:52
问题 My app worked well so far, when all was done by accessing its public IP. Now, it's being added to the main site, as app.mainsite.com. It's accessible like that. I can log in, etc, everything. But my app is a little special in that, a certain feature of it allows its users to open one of its URLs in an iframe on any third party site where the app's scripts are embedded in html, to do some app specific activity on those third party sites. Now, everyone could see the new stuff the app brought to