Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sbcd90/proxy_servlet
Proxy Servlet
https://github.com/sbcd90/proxy_servlet
Last synced: 9 days ago
JSON representation
Proxy Servlet
- Host: GitHub
- URL: https://github.com/sbcd90/proxy_servlet
- Owner: sbcd90
- Created: 2013-06-20T21:35:39.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-06-20T21:38:25.000Z (over 11 years ago)
- Last Synced: 2024-04-14T18:21:11.627Z (7 months ago)
- Language: Java
- Size: 781 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Proxy Servlet
I wrote a small Proxy Servlet which developers can use to solve the CORS issue which they may face while sharing data from/to different domains via AJAX.
Key Features:
=============1. Solves the AJAX CORS(Cross Origin Resource Sharing) issue.
2. Supports both HTTP, HTTPS
3. Easy to install & run -- Get started in minutes
How to use it?
==============1. Download the full source code from Github
2. Add all the external JAR files(check the directory "external_files" in source) to build path.
3. Add all the JAR files to WEB-INF/lib.
4. If Username/Password authentication is required, go to Line 53 in datafetch.java & enter your username & password. This may be changed in later versions & parameters may be used for receiving Username/Password from User. The initial version only supports this.
4. Download Apache Tomcat.
5. Host the proxy servlet along with your app.
6. Call the proxy servlet using the following url:
"/com.sap.proxy_datafetch/sapservlet?url="
Future Plans:
=============To support all other HTTP methods like POST,PUT etc.
Using web.xml Servlet Mapping