mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 18:34:10 -05:00
Backport #24206 by @wxiaoguang Document: ``` ;ALLOW_DOMAIN = * ;METHODS = GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS ``` Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
f134229bf2
commit
2e6e5bc9c9
1 changed files with 3 additions and 2 deletions
|
@ -21,9 +21,10 @@ var CORSConfig = struct {
|
||||||
Headers []string
|
Headers []string
|
||||||
XFrameOptions string
|
XFrameOptions string
|
||||||
}{
|
}{
|
||||||
Enabled: false,
|
AllowDomain: []string{"*"},
|
||||||
MaxAge: 10 * time.Minute,
|
Methods: []string{"GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},
|
||||||
Headers: []string{"Content-Type", "User-Agent"},
|
Headers: []string{"Content-Type", "User-Agent"},
|
||||||
|
MaxAge: 10 * time.Minute,
|
||||||
XFrameOptions: "SAMEORIGIN",
|
XFrameOptions: "SAMEORIGIN",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue