cross-domain

Get List of jQuery UI themes - from an URL (same-origin-policy)

ぐ巨炮叔叔 提交于 2019-12-17 12:40:02
问题 Does anyone know a way to get list of jQuery themes from http://jquery-ui.googlecode.com/svn/tags/1.8.23/themes/ ? I am creating simple webpage with themes roller where the user can switch themes dynamically. Working fiddle - Click on Themes on Right top corner and select a new theme. Right now the list is hard coded as below, <div id="theme-list"> <ul> <li class="themes-el ui-state-highlight" data-theme="cupertino">cupertino</li> <li class="themes-el" data-theme="hot-sneaks">hot-sneaks</li>

Get List of jQuery UI themes - from an URL (same-origin-policy)

£可爱£侵袭症+ 提交于 2019-12-17 12:39:04
问题 Does anyone know a way to get list of jQuery themes from http://jquery-ui.googlecode.com/svn/tags/1.8.23/themes/ ? I am creating simple webpage with themes roller where the user can switch themes dynamically. Working fiddle - Click on Themes on Right top corner and select a new theme. Right now the list is hard coded as below, <div id="theme-list"> <ul> <li class="themes-el ui-state-highlight" data-theme="cupertino">cupertino</li> <li class="themes-el" data-theme="hot-sneaks">hot-sneaks</li>

Preventing “SCRIPT5: Access is denied” error in IE

跟風遠走 提交于 2019-12-17 11:18:32
问题 Scenario: Page A on A.com that has an IFrame containing Page B on B.com. Page B uses jQuery 1.10.1 and does not need to communicate with Page A. Regardless of this fact, in IE9 and IE10, jQuery generates a "SCRIPT5: Access is denied." error and seemingly refuses to execute any jQuery at all. I have no need of cross-domain communication, AJAX requests, etc., but I do need jQuery to load and execute without errors in Page B. Is there a way to prevent this error from appearing (and inhibiting

Can Cross-Origin Resource Sharing headers authorize X-Domain IFRAME access?

你。 提交于 2019-12-17 11:03:14
问题 Adjusting the height of an IFRAME to match its content page's height can be a real drag when the containing and content pages are not from the same domain. Do the Cross-Origin Resource Sharing (CORS) headers make it possible for the content page to authorize cross-domain access to its resources and thus allow its containing page to read its height? (or, alternatively, the containing page authorize the content page to announce its height?) Or is CORS strictly an AJAX thing? 回答1: CORS doesn't

Cross sub domain iframes and JavaScript

杀马特。学长 韩版系。学妹 提交于 2019-12-17 10:41:32
问题 I am working on a CMS site whose domain is: http://www.acmssite.com They have a sub-domain where they store a form system: http://www.forms.acmssite.com I have an iframe on the first that looks at a form in the latter. I need to run scripts to manipulate the latter from the former and was wondering is this possible? 回答1: In order for this to not be restricted by the same origin policy, you will probably need to do this in both the pages: document.domain = "acmssite.com"; 回答2: Yes it is. var

Internet Explorer 11 does not add the Origin header on a CORS request?

旧时模样 提交于 2019-12-17 09:46:23
问题 My issue depends on a couple of assumptions I hold true. Assumption nr 1: The Origin Header The Origin header is required by the browser to be put on a CORS (Cross Origin Resource Sharing) request. Wikipedia: To initiate a cross-origin request, a browser sends the request with an Origin HTTP header. HTML5 Rocks: The first thing to note is that a valid CORS request always contains an Origin header. This Origin header is added by the browser, and can not be controlled by the user. W3: If the

postMessage still broken on IE11?

偶尔善良 提交于 2019-12-17 08:59:09
问题 It seems that window.postMessage is still broken on IE 11 when the message is between a window and a child popup/tab with window.open when it's sent from different domains [or same domain in some case, c.f. update 16/01] There was similar issues with IE 8/9/10 but this feature was flagged as 'supported' in IE 11 from 'partially supported' in IE 10 There is an example of the code that works on chrome/ff but not IE: The opener (jsfiddle): $(document).ready(function() { $('#log').append(

Downloadable font on firefox: bad URI or cross-site access not allowed

穿精又带淫゛_ 提交于 2019-12-17 08:25:13
问题 I'm a webmaster at http://www.beperk.com (I'm giving you the URL so you are able to check the problem) and I'm having lots of problems using @font-face in CSS. I want to use the foundicons from zurb dot com so I hosted them at Amazon S3. I set up the bucket to allow crossdomain access as specified here: http://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html#how-do-i-enable-cors And everything started to work seamless at webkit, trident and gecko... mostly: when browsing the web with firefox

POST request not allowed - 405 Not Allowed - nginx, even with headers included

我的梦境 提交于 2019-12-17 08:24:56
问题 I have a problem in trying to do a POST request in my application and I searched a lot, but I did not find the solution. So, I have a nodeJS application and a website, and I am trying to do a POST request using a form from this site, but I always end up in this: and in the console I see : Uncaught TypeError: Cannot read property 'value' of null Post "http://name.github.io/APP-example/file.html " not allowed that is in this line of code : file.html: <form id="add_Emails" method ="POST" action=

CORS - Cross-Domain AJAX Without JSONP By Allowing Origin On Server

戏子无情 提交于 2019-12-17 07:40:33
问题 I have two separate apps on the same server, with the EmberJS one trying to do cross-domain calls to my backend API. I set up my backend API to allow cross-domain requests from that specific origin. Is there a way however, to avoid using JSONP with such a set up? $.ajax is blocking cross-domain requests before they ever get sent. If not, what is the point of CORS, which server-side I had implemented to accept requests from my JS front-end source? EDIT AJAX request: $.ajax({ url: "api.lvh.me