@@ -57,17 +57,20 @@ func Test_getValidCORSHeaders(t *testing.T) {
5757 }{
5858 {map [string ]string {},
5959 map [string ]string {
60+ "Access-Control-Allow-Origin" : "*" ,
6061 "Access-Control-Allow-Headers" : allowedHeaders ,
6162 "Access-Control-Allow-Methods" : allowedMethods ,
6263 },
6364 },
6465 {map [string ]string {
6566 "Access-Control-Max-Age" : strconv .Itoa (600 ),
6667 "Access-Control-Allow-Headers" : "" ,
68+ "Access-Control-Allow-Origin" : "same-origin" ,
6769 "Access-Control-Allow-Methods" : http .MethodPost ,
6870 },
6971 map [string ]string {
7072 "Access-Control-Max-Age" : strconv .Itoa (600 ),
73+ "Access-Control-Allow-Origin" : "same-origin" ,
7174 "Access-Control-Allow-Headers" : allowedHeaders ,
7275 "Access-Control-Allow-Methods" : http .MethodPost ,
7376 },
@@ -76,6 +79,7 @@ func Test_getValidCORSHeaders(t *testing.T) {
7679 "Access-Control-Allow-Headers" : "clientid" ,
7780 },
7881 map [string ]string {
82+ "Access-Control-Allow-Origin" : "*" ,
7983 "Access-Control-Allow-Headers" : allowedHeaders + ", clientid" ,
8084 "Access-Control-Allow-Methods" : allowedMethods ,
8185 },
@@ -89,6 +93,7 @@ func Test_getValidCORSHeaders(t *testing.T) {
8993 map [string ]string {
9094 "Access-Control-Allow-Credentials" : "true" ,
9195 "Access-Control-Max-Age" : strconv .Itoa (600 ),
96+ "Access-Control-Allow-Origin" : "*" ,
9297 "Access-Control-Allow-Headers" : allowedHeaders ,
9398 "Access-Control-Allow-Methods" : allowedMethods ,
9499 },
0 commit comments