22 lines
473 B
Markdown
22 lines
473 B
Markdown
|
#### Middleware
|
||
|
|
||
|
I think file configs are cleaner than having a billion labels. This is not required, but it's nice to have.
|
||
|
|
||
|
```yaml
|
||
|
# middleware.yaml
|
||
|
http:
|
||
|
middlewares:
|
||
|
BlueskyHeaders:
|
||
|
headers:
|
||
|
accessControlAllowMethods:
|
||
|
- GET
|
||
|
- OPTIONS
|
||
|
- PUT
|
||
|
- POST
|
||
|
- DELETE
|
||
|
accessControlAllowHeaders: "*"
|
||
|
accessControlAllowOriginList: "*"
|
||
|
addVaryHeader: true
|
||
|
stsSeconds: 63072000
|
||
|
```
|