https://github.com/9sako6/cors-proxy-server
This is a proxy which adds CORS headers to the proxied request. Written in Deno.
https://github.com/9sako6/cors-proxy-server
deno proxy-server
Last synced: about 2 months ago
JSON representation
This is a proxy which adds CORS headers to the proxied request. Written in Deno.
- Host: GitHub
- URL: https://github.com/9sako6/cors-proxy-server
- Owner: 9sako6
- License: mit
- Created: 2023-01-01T13:44:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-02T14:31:28.000Z (over 3 years ago)
- Last Synced: 2024-12-31T20:31:20.296Z (over 1 year ago)
- Topics: deno, proxy-server
- Language: TypeScript
- Homepage: https://9sako6-cors-proxy-server.deno.dev
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cors-proxy-server
[](https://github.com/9sako6/cors-proxy-server/actions/workflows/ci.yml)
This is a proxy which adds CORS headers to the proxied request.
Because there is a limit to the number of requests that can be processed per
day, **I recommend that you fork the repository and host it yourself with Deno
deploy.**
Furthermore, the server may be shut down without notice.
## Limitation
Now cors-proxy-server is hosted on [Deno Deploy](https://deno.com/deploy) free
plan.
The limitation is 100,000 requests per day.
## Usage
Specify the URL you wish to request in the `quest` query parameter.
Then, cors-proxy-server a returns response with
`access-control-allow-origin": *` header.
```text
https://9sako6-cors-proxy-server.deno.dev?quest=
```
Notes:
- Only GET method is allowed
- Response specified by URL must return HTML
Request examples:
- `https://9sako6-cors-proxy-server.deno.dev?quest=https://www.google.com`
- `https://9sako6-cors-proxy-server.deno.dev?quest=https://github.com`
### Docker Image
A Docker image is available to start the server. The server runs on
`http://localhost:8000/` by the following command.
```bash
docker run -p 8000:8000 ghcr.io/9sako6/cors-proxy-server:latest
```
To authenticate to the Container registry (`ghcr.io`), please see the following
documentation.
[Authenticating to the Container registry - GitHub Docs](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-to-the-container-registry)