Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/behnambm/gors
Traefik plugin to handle CORS
https://github.com/behnambm/gors
traefik traefik-plugin
Last synced: 2 days ago
JSON representation
Traefik plugin to handle CORS
- Host: GitHub
- URL: https://github.com/behnambm/gors
- Owner: behnambm
- Created: 2023-04-17T16:16:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-17T16:21:40.000Z (over 1 year ago)
- Last Synced: 2024-04-16T00:18:59.834Z (7 months ago)
- Topics: traefik, traefik-plugin
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GORS: A simple way of handling CORS in Traefik
This plugin intercepts requests and processes the OPTIONS requests and returns the desired response.
### Features:
- Supports for disabling or enabling the plugin
- Ability to config allowed `Origin`, `Headers`, `Methods` and `Max-Age`## Examples
#### Allow all origins
```yaml
AllowedOrigins:
- "*"
```#### Limit allowed origins
```yaml
AllowedOrigins:
- "https://foo.example.com"
- "https://bar.example.com"
```## Defaults:
```yaml
AllowedOrigins: empty list
AllowedHeaders: empty list
Disabled: true
PreflightMaxAge: 3600
AllowedMethods: empty list
```# TODO:
- Ability to use Regex for allowed `Origin`