Skip to content

Commit

Permalink
docs: Add config example for CORS in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyno-zeta committed Nov 27, 2020
1 parent 0935213 commit 00016c0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,31 @@ log:
# server:
# listenAddr: ""
# port: 8080
# # CORS configuration
# cors:
# # Enabled
# enabled: false
# # Allow all traffic
# allowAll: true
# # Allow Origins
# # Example: https://fake.com
# allowOrigins: []
# # Allow HTTP Methods
# allowMethods: []
# # Allow Headers
# allowHeaders: []
# # Expose Headers
# exposeHeaders: []
# # Max age
# # 300 is the maximum value not ignored by any of major browsers
# # Source: https://github.com/go-chi/cors
# maxAge: 0
# # Allow credentials
# allowCredentials: false
# # Run debug
# debug: false
# # OPTIONS method Passthrough
# optionsPassthrough: false

# Template configurations
# templates:
Expand Down

0 comments on commit 00016c0

Please # to comment.