Giter Site home page Giter Site logo

blocked request about xdomain HOT 10 CLOSED

jpillora avatar jpillora commented on May 11, 2024
blocked request

from xdomain.

Comments (10)

serafinomb avatar serafinomb commented on May 11, 2024

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.

jpillora avatar jpillora commented on May 11, 2024

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.

serafinomb avatar serafinomb commented on May 11, 2024

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.

jpillora avatar jpillora commented on May 11, 2024

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.

pasupulaphani avatar pasupulaphani commented on May 11, 2024

I'm now facing this error. How did you solve this exactly?

from xdomain.

pasupulaphani avatar pasupulaphani commented on May 11, 2024

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.

c0mrade avatar c0mrade commented on May 11, 2024

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.

pasupulaphani avatar pasupulaphani commented on May 11, 2024

Thank you very much @c0mrade . I will try what u said and will edit my above comment.

from xdomain.

jpmckearin avatar jpmckearin commented on May 11, 2024

@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.

c0mrade avatar c0mrade commented on May 11, 2024

means remove it

from xdomain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.