https://github.com/bryanlundberg/cors-router
Resolve CORS issues in "production" for Frontend - serverless projects.
https://github.com/bryanlundberg/cors-router
cors cors-proxy frontend-serverless
Last synced: about 1 month ago
JSON representation
Resolve CORS issues in "production" for Frontend - serverless projects.
- Host: GitHub
- URL: https://github.com/bryanlundberg/cors-router
- Owner: bryanlundberg
- License: mit
- Created: 2023-08-30T21:35:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-05T16:31:54.000Z (over 2 years ago)
- Last Synced: 2023-10-05T17:37:06.888Z (over 2 years ago)
- Topics: cors, cors-proxy, frontend-serverless
- Language: Pug
- Homepage: https://cors-router.onrender.com/
- Size: 114 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# **CORS-Router**
CORS-Router is a flexible proxy solution specifically to simplify Cross-Origin Resource Sharing (CORS) challenges within serverless web applications. It effortlessly enables you to bypass CORS limitations while accessing external API's.
### How It Works
By sending your HTTP requests through CORS-Handler using the following format:
`https://cors-router.onrender.com/proxy/https://your-url-to-fetch`
Usage example:
https://cors-router.onrender.com/proxy/https://pokeapi.co/api/v2/pokemon/ditto
This makes sure your frontend apps can easily fetch data without any CORS issues in production.
### Key Features
- Seamlessly resolve CORS issues in your serverless projects.
- Preserve the original response, whether it succeeds or fails.
- Lightweight and easy to use.
### License
This project is licensed under the MIT License - see the [LICENSE](https://github.com/bryanlundberg/CORS-Handler/blob/main/README.md) file for details.
----------
**Note:** CORS-Handler is not intended for malicious purposes and should be used responsibly and in compliance with all relevant regulations and policies.