cross-domain

AG_E_NETWORK_ERROR when loading a remote Image in SIlverlight

佐手、 提交于 2020-01-13 06:42:49
问题 I have a ListBox that gets populated with items read from a JSON response. Each item has an Image control that displays the thumbnail at the remote URL given by the Thumbnail property. I created a custom IValueConverter to convert the URL to a BitmapImage , but the image still didn't display. So I finally realized that I could capture loading errors with the ImageFailed event. What I get is an AG_E_NETWORK_ERROR . I looked at Silverlight's URL Access Restrictions and the table states that

AG_E_NETWORK_ERROR when loading a remote Image in SIlverlight

北城以北 提交于 2020-01-13 06:42:48
问题 I have a ListBox that gets populated with items read from a JSON response. Each item has an Image control that displays the thumbnail at the remote URL given by the Thumbnail property. I created a custom IValueConverter to convert the URL to a BitmapImage , but the image still didn't display. So I finally realized that I could capture loading errors with the ImageFailed event. What I get is an AG_E_NETWORK_ERROR . I looked at Silverlight's URL Access Restrictions and the table states that

Access-Control-Allow-Origin syntax

只谈情不闲聊 提交于 2020-01-12 14:18:47
问题 I want allow Cross-origin resource sharing from all the sub-domain of from.example.com . So I added Cross-origin resource sharing header as given below to a page in subdomain1.to.example.com . <?php header('Access-Control-Allow-Origin: *.from.example.com'); And I tried to access the page form subdomain1.from.example.com using ajax. I didn't get the response. So I just changed the above header as given below. <?php header('Access-Control-Allow-Origin: http://subdomain1.from.example.com'); It

Access-Control-Allow-Origin syntax

允我心安 提交于 2020-01-12 14:14:50
问题 I want allow Cross-origin resource sharing from all the sub-domain of from.example.com . So I added Cross-origin resource sharing header as given below to a page in subdomain1.to.example.com . <?php header('Access-Control-Allow-Origin: *.from.example.com'); And I tried to access the page form subdomain1.from.example.com using ajax. I didn't get the response. So I just changed the above header as given below. <?php header('Access-Control-Allow-Origin: http://subdomain1.from.example.com'); It

Security Sandbox Violation: Lack of Policy File Permissions

混江龙づ霸主 提交于 2020-01-11 09:35:09
问题 I'm using as3httpclientlib to post data to my web service, but I'm continually getting the following security violation. Does anyone know how to resolve this? My crossdomain.xml file is below the security violation notice. NOTE: I'm using apache to proxy requests to the web service, therefore the target url/port and the url/port serving the applet are the same -- i.e. http://192.168.100.101 . Also, the crossdomain.xml file is located in the root of the web app which serves the applet rather

How do I use external JSON…?

ぐ巨炮叔叔 提交于 2020-01-11 04:03:31
问题 spent a few hours trying to figure this out, but cannot for the life of me figure out what's going wrong. All I'm trying to do is load this: https://recruit.zoho.com/ats/EmbedResult.hr?jodigest=2cV.Sr2As6VxhLMxQGuTNij*g.Fb3J7ysduDs.AC9sU-&atslocale=en_GB&rawdata=json which I believe is json, into either javascript/jquery or php and use the data. I've looked into jsonp, followed some tutorials, used some demos as templates and just can't get the above data to work. If anyone can shed some

Cross domain popup window with return value

空扰寡人 提交于 2020-01-11 03:38:05
问题 This is the setup: I have two websites on two different domains: www.website1.com www.someotherwebsite.com This is what I want to do: When a user is on www.website1.com and clicks a link, I want a window to popup showing www.someotherwebsite.com . When the user clicks a button in the popup window (showing www.someotherwebsite.com ) I want that window to close and have a value returned. I want the value returned from the popup window to be placed (into a div, or into a javascript call, or

Why does this cross-domain request work in other browsers but not IE9?

只愿长相守 提交于 2020-01-10 14:45:48
问题 I have some Ajax code that is working in Safari, Chrome and Firefox but not in IE9. The page is on http://foo.com/test.aspx and it's making an AJAX request to a webservice hosted on https://service.foo.com . I thought I wouldn't have any cross-domain issues but given IE9 is blocking it, it appears that I do :( var tempUrl = "https://service.foo.com/dummy.svc/test?hi=bye"; $.get(tempUrl, "html"); As I mentioned, the code works in the other 3 browsers, just not IE9. (I'm only concerned about

Why does this cross-domain request work in other browsers but not IE9?

无人久伴 提交于 2020-01-10 14:45:33
问题 I have some Ajax code that is working in Safari, Chrome and Firefox but not in IE9. The page is on http://foo.com/test.aspx and it's making an AJAX request to a webservice hosted on https://service.foo.com . I thought I wouldn't have any cross-domain issues but given IE9 is blocking it, it appears that I do :( var tempUrl = "https://service.foo.com/dummy.svc/test?hi=bye"; $.get(tempUrl, "html"); As I mentioned, the code works in the other 3 browsers, just not IE9. (I'm only concerned about

Load local JSON files via file:// triggers cross-domain null origin violation, solution? (jQuery)

好久不见. 提交于 2020-01-10 04:06:09
问题 I have a webpage I'd like to use locally, without a web server, by simply opening the local HTML file in my browser. This webpage in question loads data via jQuery's getJson() method, as in: $.getJSON("mydata.json", function(j) { ... The JSON files are also local, and are stored in the same directory as the webpage. When I attempt to use the page, I get: Origin null is not allowed by Access-Control-Allow-Origin. (Chrome 6 OS X, similar errors in Firefox and Safari). Is there any way around