www.webdeveloper.com
Results 1 to 3 of 3

Thread: cross origin resource sharing (cors) on iphone (xmlhttprequest)

  1. #1
    Join Date
    May 2010
    Posts
    3

    cross origin resource sharing (cors) on iphone (xmlhttprequest)

    has anyone managed to get cors* working on the iphone?

    i have it working in safari, chrome, ff, and android’s chrome, but iphone’s safari doesn’t work for me. any tricks on getting cors working for iphone?

    thanks!
    colin

    * what's cors? see:
    http://www.nczonline.net/blog/2010/0.../#comment-5583

  2. #2
    Join Date
    May 2010
    Posts
    3
    update:
    the iphone *simulator* even works, but the (latest) iphone doesn't : /

  3. #3
    Join Date
    May 2010
    Posts
    3
    update:

    I now have a reproducible test showing that iPhone's MobileSafari can successfully send a POST request via JavaScript's XMLHttpRequest, but only to a resource with the same origin as the host page. When the resource has a different origin (i.e., for cross-domain POST requests), no post data is sent to the server. The request's Content-Length header has the value 0.

    Here is the test showing cross-origin requests failing:

    http://moock.org/iphonecors/posttest.html

    Here is the test showing same-origin requests succeeding:

    http://unionplatform.com/xmlhttptest/posttest.html

    All info/comments much appreciated!

    colin

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles