Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fostroll/cors_api_proxy
Just one more simple proxy that remove CORS restrictions for API requests
https://github.com/fostroll/cors_api_proxy
cors flask proxy python
Last synced: 3 days ago
JSON representation
Just one more simple proxy that remove CORS restrictions for API requests
- Host: GitHub
- URL: https://github.com/fostroll/cors_api_proxy
- Owner: fostroll
- License: apache-2.0
- Created: 2020-01-30T09:46:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-25T15:28:13.000Z (over 3 years ago)
- Last Synced: 2024-12-17T06:03:14.387Z (8 days ago)
- Topics: cors, flask, proxy, python
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CORS API Proxy
Just one more simple proxy that remove CORS restrictions for API requests
## Usage
Dev mode (use Flask server):
```
python cors_api_proxy
```Prod mode (use WSGI server):
```
python cors_api_proxy prod
```*Watch Requests* option:
```
python cors_api_proxy watch_reqs
python cors_api_proxy prod watch_reqs
```
The option is used for checking if long requests are still in processing.
Specifically, it's the only way to know when uploading a file to the
server have been finished.To use this function just add unique *reqid* key to your request. E.g.:
```
http://proxy_url:port/your_api_link?reqid=
```
Then you may check if the request is still in processing:
```
http://proxy_url:port/your_api_link?reqid=&test=true
```
If it is still in, you'll get the response with the status code **204**.
Otherwise, you'll get the status **404**.## License
***CORS API Proxy*** is released under the Apache License. See the
[LICENSE](https://github.com/fostroll/cors_api_proxy/blob/master/LICENSE) file
for more details.