Skip to content
/ gAJAX Public

gAJAX: a ajax request method ignore the same origin policy

Notifications You must be signed in to change notification settings

Grassboy/gAJAX

Repository files navigation

grassboy-ajax

auto generate the cross domain xhr

Warning

This addon violated so called review policy of AMO.
So... Think twice before you install it!!

Usage:

GET Request

gAJAX({
    url: 'http://httpbin.org/get?a=1&b=2',
    type: 'get'
}, function(responseText, response){
    //You can also get responseText by accessing response.text
    alert(responseText);
});

POST Request

gAJAX({
    url: 'http://httpbin.org/post',
    type: 'post',
    data: {a:1,b:2}
}, function(responseText, response){
    //You can also get responseText by accessing response.text
    alert(responseText);
});

About

gAJAX: a ajax request method ignore the same origin policy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published