cross-domain

JS security issue with Opera 11.01, after moving from server A to B

情到浓时终转凉″ 提交于 2020-01-06 19:48:14
问题 I have a outer HTML-document (subdomain1.server-a.de) with an iFrame and inner HTML-document (subdomain2.server-a.de). The inner script should send & receive AJAX-requests to subdomain2.server-a.de. I've set the document.domain-value for both documents to "server-a.de" - so far, so good, works well in all tested browsers (FF/Chrome/Opera). Now I move the scripts to server-b.de with same subdomains and set the document.domain on both documents to "server-b.de". That still works in FF and

Since v38, Chrome extension cannot load from HTTP URLs anymore, workaround?

时光毁灭记忆、已成空白 提交于 2020-01-06 14:37:09
问题 The users of our website run our Chrome plugin which, amongst other things, performs cross-origin requests via XMLHttpRequest as described on the Chrome extension development pages. This has been running just fine for a few years now. However, ever since our users upgraded to the latest version of Chrome (v38), these requests have failed. Our site runs on HTTPS and some of the URLs loaded via our content script are on HTTP. The message is: [blocked] The page at 'https://www.ourpage.com/' was

Successful Ajax post displays error message

荒凉一梦 提交于 2020-01-06 14:07:50
问题 My form properly submits data via POST utilizing Ajax. However I am trying to redirect the user upon successful submission. The problem is, even though the form successfully submits, instead of redirecting the user it displays an error. According to firebug the page I am submitting to, is throwing up a 200 success code. I am using jquery 1.8.3. My Code: $(document).ready(function() { $("#form4").submit(function(e) { e.preventDefault(); var frm = $('#form4'); $.ajax({ type: 'POST', url: 'http:

Ajax cross domain question

眉间皱痕 提交于 2020-01-06 08:47:09
问题 In the code there are two methods, 1st method should read the text from the same domain that is example.com, and the 2nd function should read the text from different domain that Google.com/example.txt. Could any please let me know who to do this. I'm not sure whether I have framed the question properly. Please ask me if you do not understand my question. //Ajax Question //The html file path is http://example.com/example.html <html> <head> <script type="text/javascript"> function Click1() {

Upload document in online SharePoint site collection document library from another application outside SharePoint

ⅰ亾dé卋堺 提交于 2020-01-06 06:32:58
问题 I have developed a SharePoint App that is running on Online SharePoint 2016 site Collection. Have another Software Application with Rest API that is running on my another Online server. More this app is purely developed using HTML,Javascript/JQuery. no server side scripting. More SharePoint App strongly integrated with my Software Application (using Ajax calls for data fetching). Now the issue is, i want to upload files into SharePoint from Software Application. Note: Anonymous access is not

3 ways to make a cross-domain request in Javascript

流过昼夜 提交于 2020-01-06 05:48:06
问题 I already know 2 ways (proxy using php and including an external javascript file). What is another way? 回答1: You can use Access-Control-Allow-Origin: * in the headers coming from the server on the other domain. That relies on the browser being modern, however. Won't work on IE older than 8. See https://developer.mozilla.org/En/HTTP_access_control 回答2: There is also Cross-Document Messaging combined with regular XHR. An example of this can be seen on the easyXDM example page : http://consumer

Karma unit test cross domain resource AngularJS

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-06 01:22:46
问题 I use karma as my angular project test running framework, my angular have server service need to access another web url to get data like http://localhost:8081/common/countries get all information about country. my problem is my karma start at localhost:9876 and it need to get data from http://localhost:8081/common/countries this cause cross domain problem by the browse same-origin policy. so I get below error in my console: Error: Unexpected request: GET http://localhost:8081/common/countries

Spring data using Neo4j and MongoDB

霸气de小男生 提交于 2020-01-05 08:21:33
问题 I am just about to go crazy,I just spent many hours to try work with spring-data for Neo4J ,working with spring-data for MongoDB was a walk in the park compared to that. My goals: 1) Working with spring-data to manage two data-stores Mongo,Neo4j. (correct me if I am wrong but there is no spring-data cross data store support for these two, which mean I will use different domain entities for each store) 2) Working with Neo4J embedded graph. 3) Will have the ability to monitor the graph with

Access-Control-Allow-Origin using Google Maps JavaScript API v3

ⅰ亾dé卋堺 提交于 2020-01-04 13:39:40
问题 I am currently writing a web application using Google Maps JavaScript API v3 (jobadvisor.scriptonite.be)(DUTCH). The application is online for a couple of months now and everything was working just fine. But then at the start of this month, I started adjusting my source code in local host. After a week I updated everything on my localhost an left it there. So, FTR: I currently have my old application on an online host My updated application on my localhost Then 2 weeks went by, but now, when

How can I override javascript files referenced with the crossorigin=“anonymous” using a Google Chrome extension?

偶尔善良 提交于 2020-01-04 08:18:05
问题 In the response HTML of a website, with a domain like http://www.example.com , there are many javascript files referenced. One of them references a javascript file on a different domain, and this script tag has the crossorigin="anonymous" attribute set: <script crossorigin="anonymous" src="//cdn.example.net/script.js"></script> I've attempted to redirect the request to another url using a Google Chrome extension: chrome.webRequest.onBeforeRequest.addListener(function(info) { return {