@@ -57,20 +57,17 @@ func Test_getValidCORSHeaders(t *testing.T) {
5757 }{
5858 {map [string ]string {},
5959 map [string ]string {
60- "Access-Control-Allow-Origin" : "*" ,
6160 "Access-Control-Allow-Headers" : allowedHeaders ,
6261 "Access-Control-Allow-Methods" : allowedMethods ,
6362 },
6463 },
6564 {map [string ]string {
6665 "Access-Control-Max-Age" : strconv .Itoa (600 ),
6766 "Access-Control-Allow-Headers" : "" ,
68- "Access-Control-Allow-Origin" : "same-origin" ,
6967 "Access-Control-Allow-Methods" : http .MethodPost ,
7068 },
7169 map [string ]string {
7270 "Access-Control-Max-Age" : strconv .Itoa (600 ),
73- "Access-Control-Allow-Origin" : "same-origin" ,
7471 "Access-Control-Allow-Headers" : allowedHeaders ,
7572 "Access-Control-Allow-Methods" : http .MethodPost ,
7673 },
@@ -79,7 +76,6 @@ func Test_getValidCORSHeaders(t *testing.T) {
7976 "Access-Control-Allow-Headers" : "clientid" ,
8077 },
8178 map [string ]string {
82- "Access-Control-Allow-Origin" : "*" ,
8379 "Access-Control-Allow-Headers" : allowedHeaders + ", clientid" ,
8480 "Access-Control-Allow-Methods" : allowedMethods ,
8581 },
@@ -93,7 +89,6 @@ func Test_getValidCORSHeaders(t *testing.T) {
9389 map [string ]string {
9490 "Access-Control-Allow-Credentials" : "true" ,
9591 "Access-Control-Max-Age" : strconv .Itoa (600 ),
96- "Access-Control-Allow-Origin" : "*" ,
9792 "Access-Control-Allow-Headers" : allowedHeaders ,
9893 "Access-Control-Allow-Methods" : allowedMethods ,
9994 },
0 commit comments