Add the four settings the README documented but pixa lacked (closes #61) #142
@@ -792,6 +792,23 @@ func invalidSizeAndOriginCases() []abortCase {
|
||||
keyAccessControlAllowOrigin, "https://example.com/",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "access_control_allow_origin host *",
|
||||
yaml: signingKeyLine + "access_control_allow_origin: https://*\n",
|
||||
wantErrSubstrings: []string{keyAccessControlAllowOrigin, "https://*"},
|
||||
},
|
||||
{
|
||||
name: "access_control_allow_origin host *.example.com",
|
||||
yaml: signingKeyLine +
|
||||
"access_control_allow_origin: https://*.example.com\n",
|
||||
wantErrSubstrings: []string{keyAccessControlAllowOrigin, "https://*.example.com"},
|
||||
},
|
||||
{
|
||||
name: "access_control_allow_origin host *example.com",
|
||||
yaml: signingKeyLine +
|
||||
"access_control_allow_origin: https://*example.com\n",
|
||||
wantErrSubstrings: []string{keyAccessControlAllowOrigin, "https://*example.com"},
|
||||
},
|
||||
{
|
||||
name: "access_control_allow_origin empty",
|
||||
yaml: signingKeyLine + "access_control_allow_origin: \"\"\n",
|
||||
|
||||
Reference in New Issue
Block a user