same-origin-policy

Will jQuery .load() Work On PhoneGap?

扶醉桌前 提交于 2019-11-28 05:51:24
问题 I know that the jQuery .load() function has a "problem": You can't retrieve pages that are outside of the current domain, because of the Same Origin Policy, but I remember when I was developing another program that I could do cross-domain AJAX without problems while on an PhoneGap compiled environment, but will it work while on PhoneGap(like normal AJAX) or it will just fail because of the policy? 回答1: You can use .load() or $.ajax() in PhoneGap applications. Most of my experience is with

How can ASP.NET or ASP.NET MVC be protected from related domain cookie attacks?

99封情书 提交于 2019-11-28 04:22:54
The related domain cookie attack (more info) allows machines in the same DNS domain to add additional cookies that will also be sent to other computers in the same domain. This can cause issues with authentication, or at worst be a component in a confused deputy attack. Question How can I protect ASP.NET or ASP.NET MVC from this type of attack? One possible attack scenario I log into a "secure" web app I get the credentials for my account I trick the user into visiting my site on the same DNS domain I insert the cookie (of my creds) the user goes back to your app. Both cookies (or an

Same origin policy - Subdomains and Root Domain

自作多情 提交于 2019-11-28 02:47:05
问题 I have a question regarding the same-origin policy. My company has many subdomains and in one of them they would like an iframe with another subdomain inside of it and populate the form of the iframe. I have read about the document.domain property and that I would need to set in on all three domains, however I can not easily test this due to each subdomain belonging to a different department. So here is my question: Is this possible when the subdomains are both https, and the root domain is

Flutter: Web View Secure Origin

眉间皱痕 提交于 2019-11-28 02:18:22
I am getting an error with Flutter Webview (webview_flutter: ^0.1.2) when loading a Youtube Video, (though I initially thought its related to content security issue,) it seems to be an issue with secure origin on HTTPS. On browser this is usually mitigated by moving to HTTPS domain, looking for a way to solve this on Mobile Container( child: WebView( initialUrl: Uri.dataFromString( '<html>' '<meta http-equiv="Content-Security-Policy" content="default-src * gap:; script-src * \'unsafe-inline\' \'unsafe-eval\'; connect-src *; img-src * data: blob: android-webview-video-poster:; style-src * \

Same origin policy

我的梦境 提交于 2019-11-28 00:15:11
Maybe some of you can help me get a better understanding of the javascript same origin policy. The same origin policy is defined as following ( http://en.wikipedia.org/wiki/Same_origin_policy ): In computing, the same origin policy is an important security concept for a number of browser-side programming languages, such as JavaScript. The policy permits scripts running on pages originating from the same site to access each other's methods and properties with no specific restrictions, but prevents access to most methods and properties across pages on different sites. I have deployed a GWT

JavaScript Same Origin Policy - How does it apply to different subdomains?

我只是一个虾纸丫 提交于 2019-11-27 23:31:29
How does the Same Origin Policy apply to the following two domains? http://server1.MyDomain.com http://server2.MyDomain.com Can I run JS on a page hosted on server1, if the content is retreived from server2? edit according to Daniel's answer below, I can include scripts between different subdomains using the <script> tag, but what about asynchronous requests? What if I download a script from server2 onto the page hosted on server1. Can I use the script to communicate asynchronously with a service on server2? Daniel Vassallo You can only include scripts between different subdomains using the

Access-Control-Allow-Origin: “*” not allowed when credentials flag is true, but there is no Access-Control-Allow-Credentials header

二次信任 提交于 2019-11-27 22:53:53
Suddenly, seemingly without changing anything in my web app, I started getting CORS errors when opening it in Chrome. I tried adding an Access-Control-Allow-Origin: * header. Then I get this error: XMLHttpRequest cannot load http://localhost:9091/sockjs-node/info?t= 1449187563637. A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'http://localhost:3010' is therefore not allowed access. But as you can see in the following image, there is no Access-Control-Allow-Credentials header. WTF? Chrome bug? My page is loaded at http:/

Embedding Google Apps Script in an iFrame

北慕城南 提交于 2019-11-27 21:38:26
I am trying to embed a page that is dynamically built using Javascript in Google Apps Script into my website in an iFrame, but the iFrame's content isn't shown. Google Apps Script has a same-origin policy which prevents it from loading. What I am trying to do is (I removed the full link): <iframe src="https://script.google.com/a/macros/SCRIPT_ID"></iframe> The error I am getting is: Refused to display 'https://script.google.com/a/macros/SCRIPT_ID' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. Is there a way to alter the policy and load the content in an iFrame? Google had just

Why is $.post() subject to same-origin policy, but submitting a form with method='POST' okay?

只谈情不闲聊 提交于 2019-11-27 20:56:44
问题 I'm working on a web-based tool which streamlines the work we do at my office. The tools provided to us by our partner have a generic login that our entire floor uses, but it times out every 30 minutes, which is annoying to have to log-into again all day. What I had done in the past, was create a hidden iframe inside my tool which logs into it by submitting a hidden form on page load, and continuing to submit the form every 30 minutes to prevent a timeout. They can then submit searches to the

What is the issue CORS is trying to solve?

懵懂的女人 提交于 2019-11-27 17:13:49
问题 I've been reading up on CORS and how it works, but I'm finding a lot of things confusing. For example, there are lots of details about things like User Joe is using browser BrowserX to get data from site.com , which in turn sends a request to spot.com . To allow this, spot has special headers... yada yada yada Without much background, I don't understand why websites wouldn't let requests from some places. I mean, they exist to serve responses to requests, don't they? Why would certain people