Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manrueda/node-proxy
Proxy JSONP para recursos fuera de dominio
https://github.com/manrueda/node-proxy
Last synced: 3 days ago
JSON representation
Proxy JSONP para recursos fuera de dominio
- Host: GitHub
- URL: https://github.com/manrueda/node-proxy
- Owner: manrueda
- Created: 2014-03-18T14:17:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-03-25T01:46:38.000Z (over 10 years ago)
- Last Synced: 2023-03-31T04:04:15.167Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
node-proxy
=========node-proxy it's a simple implementation of a proxy who by JSONP can access to resources out of the domain. (avoid [Same-origin policy] [Same-origin]).
##### Parameters (GET URL Parameters)
- o: Must be 'p' for use the proxy.
- u: URL of the resource.
- callback: Function name of the JSONP callback.Version
----0.0.1
Example
--------------```
http://mydomain.com/?u=p&u=http://www.google.com/&callback=onJSONP
```jQuery Example
--------------```JavaScript
$.ajax({
url: "http://nodeproxy.com/",
jsonp: "callback",
dataType: "jsonp",
data: {
o: "p",
u: "http://www.google.com/",
format: "json"
},
success: function (response) {
console.log(response);
}
});
```License
----MIT
[Same-origin]:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Same_origin_policy_for_JavaScript