cross-domain

Show 'Save as' dialog box while downloading file from an Iframe through PHP

萝らか妹 提交于 2019-12-11 09:34:50
问题 I know similar type of questions have been asked before, but I believe this one has some variance. My web page has an Iframe . This iframe loads the page from some other domain (cross domain scripting is in action). Now when I click a button in this iframe, it makes an AJAX request through jQuery and creates a text file on the PHP server. Now I want that a normal 'Save as' dialog box should appear so that I user can download that file from the server. I have tried all the Content-Disposition

Internet Advertisers and Third-Party Cookies - clarification?

不想你离开。 提交于 2019-12-11 09:21:52
问题 I've read this question about how third party cookie are set , which is a subject I already know : it can be done via three ways : Script ( application/javascript )mime type ( which is generated at server side) which can also set cookie. ( along with the script response). img link <IMG href="http://www.advertiser.exmaple/add.cgi?source=example.com&user=1032354"> form submission to an iframe ( for safari) Also , this answer explain it pretty well. Question : I was clicking on a glasses item in

Cross domain restriction and limitations from an iframe

做~自己de王妃 提交于 2019-12-11 08:49:49
问题 Another site uses my iframe domain XYZ.COM. I want to get all html elements of that site (XYZ.COM) and work on it with javascript, just like I do with my own domain page, while using my iframe. suppose wants to get images of XYZ.COM from iFrame document.parent; // (its ask permission denied) document.referrer; // working for me but document.referrer.images; //Error: not an object My debug tool is saying permission denied, because of cross domain restriction. Is there any solution for this,

cross-origin not working I get “Anonymous caller does not have storage.objects.get access to”

本秂侑毒 提交于 2019-12-11 08:46:56
问题 In a bucket you can change cross policy https://cloud.google.com/storage/docs/cross-origin I followed this steps: In gsutil: First I removed the read permisions from allUsers that I configured at first gsutil iam ch -d allUsers gs:/myBucketName I removed it because even if I configured the json to serve only on localhost:8080, it serves content from other ports. Then I configure with gsutil as pointed out here https://cloud.google.com/storage/docs/configuring-cors this json options: [{

cross domain tinymcePopup (Result of expression 'tinymce' [undefined] is not an object.)

依然范特西╮ 提交于 2019-12-11 08:16:48
问题 I have an AIR application which has tinyMCE js into it. I have added a button on tinyMCE toolbar , upon click of which an inlinepopup window appear. this inline popup loads an url var aa=tinyMCE.activeEditor.windowManager.open({ url : 'http://localhost/Save.html', width : 520, height : 340, resizable : "yes", inline : true, close_previous : "yes" }); Save.html code: <script src="http://www.wiris.net/demo/editor/editor"></script> <script src="http://code.jquery.com/jquery-latest.js"></script>

Duplicate Access-Control-Allow-Origin: * causing COR error?

天大地大妈咪最大 提交于 2019-12-11 08:14:33
问题 Calling a rest api from a customer's web api and it's returning duplicate Access-Control-Allow-Origin: * and it causing COR errors. I've tested locally and the duplicate does cause the error whereas a single Access-Control-Allow-Origin: * works. Is there a way around this from my side when calling the GET? HTTP/1.1 200 OK Date: Wed, 28 Nov 2012 19:40:10 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Access-Control-Allow-Origin: * Access-Control-Allow-Origin: * Set-Cookie: TargetToken

Javascript: XMLHttpRequest problem with Cross-Origin Resource Sharing

浪子不回头ぞ 提交于 2019-12-11 08:09:33
问题 I'm making a JSON request to the Google Places API with: function load(){ var req = new XMLHttpRequest(); req.open('GET', 'https://maps.googleapis.com/maps/api/place/details/json?reference=CnRhAAAARMUGgu2CeASdhvnbS40Y5y5wwMIqXKfL-n90TSsPvtkdYinuMQfA2gZTjFGuQ85AMx8HTV7axABS7XQgFKyzudGd7JgAeY0iFAUsG5Up64R5LviFkKMMAc2yhrZ1lTh9GqcYCOhfk2b7k8RPGAaPxBIQDRhqoKjsWjPJhSb_6u2tIxoUsGJsEjYhdRiKIo6eow2CQFw5W58&sensor=true&key=xxxxxxxxxxxxx', false); req.send(null); if(req.status == 200){ dump(req

Cross domain ajax request returning XML: Origin http://… is not allowed by Access-Control-Allow-Origin

断了今生、忘了曾经 提交于 2019-12-11 07:47:54
问题 This is the piece of jQuery that's not working for me : $.ajax({ crossDomain: true, type: "POST", url: "https://www.testdatasolutions.com/reportgw", data: "ACCOUNT=creditreport123&PASSWD=asdj97sdf&PASS=2&PROCESS=PCCREDIT&NAME=Robert+Ice&SSN=891-42-3221&ADDRESS=111+W+8th+St&CITY=Fantasy+Island&STATE=IL&ZIP=60750&BUREAU=TU&PRODUCT=CREDIT&DEFAULTOUTPUT=XML" }) .done(function( msg ) { alert( "Data Saved: " + msg ); }); The output error says: XMLHttpRequest cannot load https://www

ASP.NET cross domain modal window (window.showModalDialog) - parameter value always “undefined”

我的梦境 提交于 2019-12-11 07:43:46
问题 I have two webpages, parent page .aspx and child page .html. On parent page I have JavaScript function for invoking child page as modal window via window.showModalDialog. function viewCourseModal(url) { var sPars = SomeParameters(); var returnedValue = window.showModalDialog(url, "", sPars); document.getElementById("modalReadyForTest").value = returnedValue; return returnedValue; } On the child page I have the following: <script LANGUAGE="JavaScript"> function closewindow() { window

TFS Cross-domain authentication without trust

半腔热情 提交于 2019-12-11 07:37:34
问题 We are moving the TFS-server out of our development-domain to a new domain. The users in the development-domain should still be able to authenticate to the TFS-Server, either with their developement-domain credentials or a new set of credentials from the new domain. One problem is that we cannot create a trust between the domains. What is the best solution here? I've found some links where they use TFS-proxy server but they are not clear if the domains are trusted or not. Or is it possible to