HH-547: allow cross-origin widget requests (#126)
* HH-547: allow cross-origin widget requests * fix(HH-547): align production preflight with wildcard CORS --------- Co-authored-by: Rogee <rogee@ipao.vip>
This commit is contained in:
@@ -2018,7 +2018,7 @@ func TestCORSConfigFromAppConfig_Cov7(t *testing.T) {
|
||||
cfg.Server.CORS.AllowedOrigins = []string{"https://app.com"}
|
||||
result := CORSConfigFromAppConfig(cfg)
|
||||
assert.True(t, result.DevMode)
|
||||
assert.Equal(t, []string{"https://app.com"}, result.AllowedOrigins)
|
||||
assert.Empty(t, result.AllowedOrigins)
|
||||
}
|
||||
|
||||
// ===========================
|
||||
|
||||
Reference in New Issue
Block a user