Comments (10)
Solved by adding this:
Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
In the Slave .htaccess.
from xdomain.
Blocked means you've misconfugured it somehow
You haven't actually fixed it, you're just using cors now. You can use cors
if you like but you won't have easy IE support.
If you want to use XDomain, can you post your code? Script tags used?
On Saturday, December 14, 2013, blueowner wrote:
Solved by adding this:
Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with,
content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"In the Slave .htaccess.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-30514243
.
from xdomain.
I've noticed an iframe in the master-site and no errors a few ago..
Tried to remove the .htaccess lines and indeed it's working fine with no errors.
I've used the same code shown in the Quick Usage.
from xdomain.
Okay good to hear. Yup the quick usage code should do it.
On Saturday, December 14, 2013, blueowner wrote:
I've noticed an iframe in the master-site and no errors a few ago..
Tried to remove the .htaccess lines and indeed it's working fine with no
errors.I've used the same code shown in the Quick Usage.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-30525959
.
from xdomain.
I'm now facing this error. How did you solve this exactly?
from xdomain.
This worked for me:
proxy.html
<!doctype html>
<script src=" * path to script here * /xdomain.min.js" data-master="*"></script>
In index.html
<script src=" * path to script here * /xdomain.min.js"></script>
<script>
xdomain.slaves({
'http://www.example.co.uk': '/proxy.html'
});
</script>
from xdomain.
Solution to this is very misleading. And I mean both by @BlueOwner and @pasupulaphani . Solution is to turn off the 'X-Frame-Options' header for the proxy.html
from xdomain.
Thank you very much @c0mrade . I will try what u said and will edit my above comment.
from xdomain.
@c0mrade Can you elaborate on what you mean by "turn off" the X-Frame-Options header? Looking at the specs for X-Frame-Options state that the only options are DENY, SAMEORIGIN, and ALLOW-FROM uri. Could you follow up as well, @pasupulaphani
from xdomain.
means remove it
from xdomain.
Related Issues (20)
- Mask * don't allowed in slaves
- getAllResponseHeaders does not include trailing CRLF HOT 2
- Should CORS be abandoned?
- Facade responseText should default to empty string HOT 1
- ajax error
- xdomain breaking prototype chain of XMLHttpRequest HOT 2
- requires 'JSON' and this browser does not support it HOT 3
- proxy.html masters with file:// protocol HOT 1
- Faked 'load' event should set 'target' pointing to XHR instance
- Including xdomain into angular application gives "Illegal invocation" error
- XDOMAIN is interfering with Apple MapKit JS
- Google problem with XDomain
- Is there a fallback if loading iframe doesnt work? Currently, it blocks all requests
- Inaccessible path?
- Branches
- How can i send file to server HOT 1
- XD_BLOB args check issue in v0.8.2 HOT 1
- Does this library still work in 2021? HOT 1
- Global Namespace Pollution
- Create SECURITY.md
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xdomain.