首次提交:初始化项目
This commit is contained in:
29
002-infra/001-registry/cors-middleware.yaml
Normal file
29
002-infra/001-registry/cors-middleware.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
# Traefik Middleware - CORS 配置
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: cors-headers
|
||||
namespace: registry-system
|
||||
spec:
|
||||
headers:
|
||||
accessControlAllowMethods:
|
||||
- "GET"
|
||||
- "HEAD"
|
||||
- "POST"
|
||||
- "PUT"
|
||||
- "DELETE"
|
||||
- "OPTIONS"
|
||||
accessControlAllowOriginList:
|
||||
- "http://registry.u6.net3w.com"
|
||||
- "https://registry.u6.net3w.com"
|
||||
accessControlAllowCredentials: true
|
||||
accessControlAllowHeaders:
|
||||
- "Authorization"
|
||||
- "Content-Type"
|
||||
- "Accept"
|
||||
- "Cache-Control"
|
||||
accessControlExposeHeaders:
|
||||
- "Docker-Content-Digest"
|
||||
- "WWW-Authenticate"
|
||||
accessControlMaxAge: 100
|
||||
addVaryHeader: true
|
||||
Reference in New Issue
Block a user