Cross-domain policy refers to the browser restrictions on script, stylesheet, and plugin execution across domains, protocols, and ports.
Questions tagged [cross-domain-policy]
201 questions
46
votes
7 answers
Font Awesome icons not showing in Chrome, a MaxCDN related Cross-Origin Resource Sharing policy issue
just noticed on several websites that the font awesome icons aren's showing in Google Chrome. The console shows the following error:
Font from origin 'http://cdn.keywest.life' has been blocked from
loading by Cross-Origin Resource Sharing…

Yatko
- 8,715
- 9
- 40
- 46
39
votes
7 answers
.NET Core UseCors() does not add headers
This would be a duplicate of How does Access-Control-Allow-Origin header work?, but the method there also isn't working for me. I'm hoping I'm just missing something.
I am trying to get a Access-Control-Allow-Origin header in my response from my…

David
- 4,744
- 5
- 33
- 64
33
votes
7 answers
How to call external url in jquery?
I am trying to put comments on Facebook wall using jquery.
But my ajax call not alowing external url .
can anyone explain how can we use external url with jquery ?
below is my code :
var…
user319198
25
votes
5 answers
Check if same origin policy applies
Is there a "safe" way to check if the same origin policy applies to an URL before actually trying to use ajax methods? Here is what I have:
function testSameOrigin(url) {
var loc = window.location,
a = document.createElement('a');
…

David Hellsing
- 106,495
- 44
- 176
- 212
18
votes
1 answer
JavaScript access from parent domain to subdomain?
I've read that setting document.domain = "example.com" lets me access the parent domain from a subdomain.
Will the same work the other way around?
Let's say my main site is running under http://example.com. All API functions that I want to access…

Mark
- 1,447
- 2
- 14
- 26
17
votes
2 answers
Access-Control-Allow-Origin not working for iframe within the same domain
I'm trying to access an iframe within a subdomain and get a cross domain error.
Here is the code of example.mydomain.com/iframe_test.html: