Add CORS to bskyweb (#5221)

This commit is contained in:
Jaz
2024-09-09 10:39:28 -07:00
committed by GitHub
parent f240893980
commit 9e1eb1f9f1
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -80,6 +80,13 @@ func run(args []string) {
Value: "",
EnvVars: []string{"BASIC_AUTH_PASSWORD"},
},
&cli.StringSliceFlag{
Name: "cors-allowed-origins",
Usage: "list of allowed origins for CORS requests",
Required: false,
Value: cli.NewStringSlice("https://bsky.app", "https://main.bsky.dev", "https://app.staging.bsky.dev"),
EnvVars: []string{"CORS_ALLOWED_ORIGINS"},
},
},
},
}