mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-09-29 11:27:53 +00:00
Fix: add PATCH for CORS
This commit is contained in:
parent
2b93c9d4c9
commit
6f1bc3d65b
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ func Start(addr string, secret string) {
|
|||
|
||||
cors := cors.New(cors.Options{
|
||||
AllowedOrigins: []string{"*"},
|
||||
AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"},
|
||||
AllowedMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},
|
||||
AllowedHeaders: []string{"Content-Type", "Authorization"},
|
||||
MaxAge: 300,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue