Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

kitsunde/jquery-cors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery CORS

Enable your frontend to do cross domain requests just by adding:

$.enableCORS();

Which means you can now do:

$.get("https://www.facebook.com/feeds/page.php?format=json&id=501718186559038", function(r){
  console.log(r);
});

All the requests are proxies via corsproxy.io.

Installation

bower install jquery-cors

Include it after jQuery

<script src="src/cors.js"></script>
<script>$.enableCORS();</script>

About

Proxies CORS requests with jQuery

Resources

Stars

Watchers

Forks

Packages

No packages published