XDomain is a pure JavaScript CORS alternative. No server configuration required - just add a proxy.html
on the domain you wish to communicate with. This library utilizes XHook to hook all XHR, so XDomain will work seamlessly with any library.
Features
$.ajax
(and subsequently $.get
, $.post
)$http
serviceproxy.html
files (slaves) may:/^\/api/
)