Cross-Site XMLHttpRequests

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Cross-Site XMLHttpRequests - Presentation Transcript

    1. Cross-site XMLHttpRequest
      • The Future of Mashups?
      • Urban Skudnik
      • [email_address]
    2. Implementation
      • We have all seen it
      • We all love (or hate) it
    3. Old way - client-side
      • xhr.open("GET", "/x/y/z");
      • xhr.onreadystatechange = function(){ // black magic}
      • xhr.send()
    4. New way
      • xhr.open("GET", " http://example.com /x/y/z ");
      • xhr.onreadystatechange = function(){ // black magic}
      • xhr.send()
    5. One more thing
      • Server-side - a new header
      • Access-Control &quot;allow <domain.data.com>&quot;
    6. More options
      • allow
      • deny
      • allow <example.com> exclude <subd.example.com>
      • allow <example.com> method GET, POST
      • XML: <?access-control allow=&quot;example.org&quot;?>
    7. Support
      • Firefox 3 only :(
      • Even FF3 support is buggy
    8. Bottom line
      • Services distributed between domains - no need for ugly hacks
      • No need for proxys
      • allow <*>
      • Not supported by IE, making it useless for the foreseeable future

    + guest31e1b0guest31e1b0, 2 years ago

    custom

    374 views, 0 favs, 0 embeds more stats

    A lightning talk about Cross-site XMLHttpRequests

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 374
      • 374 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 4
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories