Code Monkey home page Code Monkey logo

grapefruitshoney's Projects

bidrasaber icon bidrasaber

== Cross-domain requests using a proxy server == The JavaScript same-origin policy normally prevents browsers from sending [[AJAX]] requests to a different domain and receiving a response (newer browsers that support [[Cross-Origin Resource Sharing|CORS]] can relax this constraint). A cooperating proxy server, however, does not have such restrictions and can relay a browser request to a server in a separate domain, store the result, and then return that JSON payload when the browser makes a second request. The server would be instructed within the first request to store the output (POST returning JSON payload) temporarily into a local store (for example memcached or within a session variable), and a second request from the browser then would fetch the cached response to the initial query.<ref>http://www.flinkwise.com/technology-blog/a-way-to-send-json-p-post-requests-to-another-domain-with-jquery-and-rails-in-the-back-end/</ref> The xd_arbiter.php used by Facebook's JS SDK is a popular example of this cooperating server technique.<ref>{{cite web|last=Kinsey|first=Sean|title=Facebook and Cross domain messaging clarification?|url=http://stackoverflow.com/questions/16862207/facebook-and-cross-domain-messaging-clarification|publisher=Stack Exchange, Inc.|accessdate=22 November 2013}}</ref>

gfsh icon gfsh

please refrain from hacker program control system because it results in damage to the network system program.

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.