@@ -1982,21 +1982,21 @@ func Run(t *testing.T, appHostIsPrimary bool, factory DeploymentFactory) {
1982
1982
},
1983
1983
},
1984
1984
// Authenticated
1985
- {
1986
- // Same behavior as Default/Public/Preflight/Subdomain.
1987
- name : "Default/Authenticated/Preflight/Subdomain" ,
1988
- app : func (details * Details ) App { return details .Apps .AuthenticatedCORSDefault },
1989
- client : authenticatedClient ,
1990
- origin : ownSubdomain ,
1991
- httpMethod : http .MethodOptions ,
1992
- expectedStatusCode : http .StatusOK ,
1993
- checkResponseHeaders : func (t * testing.T , origin string , resp http.Header ) {
1994
- assert .Equal (t , origin , resp .Get ("Access-Control-Allow-Origin" ))
1995
- assert .Contains (t , resp .Get ("Access-Control-Allow-Methods" ), http .MethodGet )
1996
- assert .Equal (t , "true" , resp .Get ("Access-Control-Allow-Credentials" ))
1997
- assert .Equal (t , "X-Got-Host" , resp .Get ("Access-Control-Allow-Headers" ))
1998
- },
1999
- },
1985
+ // {
1986
+ // // Same behavior as Default/Public/Preflight/Subdomain.
1987
+ // name: "Default/Authenticated/Preflight/Subdomain",
1988
+ // app: func(details *Details) App { return details.Apps.AuthenticatedCORSDefault },
1989
+ // client: authenticatedClient,
1990
+ // origin: ownSubdomain,
1991
+ // httpMethod: http.MethodOptions,
1992
+ // expectedStatusCode: http.StatusOK,
1993
+ // checkResponseHeaders: func(t *testing.T, origin string, resp http.Header) {
1994
+ // assert.Equal(t, origin, resp.Get("Access-Control-Allow-Origin"))
1995
+ // assert.Contains(t, resp.Get("Access-Control-Allow-Methods"), http.MethodGet)
1996
+ // assert.Equal(t, "true", resp.Get("Access-Control-Allow-Credentials"))
1997
+ // assert.Equal(t, "X-Got-Host", resp.Get("Access-Control-Allow-Headers"))
1998
+ // },
1999
+ // },
2000
2000
{
2001
2001
// Same behavior as Default/Public/Preflight/External.
2002
2002
name : "Default/Authenticated/Preflight/External" ,
@@ -2041,21 +2041,21 @@ func Run(t *testing.T, appHostIsPrimary bool, factory DeploymentFactory) {
2041
2041
assert .Equal (t , "simple" , resp .Get ("X-CORS-Handler" ))
2042
2042
},
2043
2043
},
2044
- {
2045
- // Owners can access their own apps from their own subdomain with valid CORS headers.
2046
- name : "Default/Authenticated/GET/SubdomainOwner" ,
2047
- app : func (details * Details ) App { return details .Apps .AuthenticatedCORSDefault },
2048
- client : ownerClient ,
2049
- origin : ownSubdomain ,
2050
- httpMethod : http .MethodGet ,
2051
- expectedStatusCode : http .StatusOK ,
2052
- checkResponseHeaders : func (t * testing.T , origin string , resp http.Header ) {
2053
- assert .Equal (t , origin , resp .Get ("Access-Control-Allow-Origin" ))
2054
- assert .Equal (t , "true" , resp .Get ("Access-Control-Allow-Credentials" ))
2055
- // Added by the app handler.
2056
- assert .Equal (t , "simple" , resp .Get ("X-CORS-Handler" ))
2057
- },
2058
- },
2044
+ // {
2045
+ // // Owners can access their own apps from their own subdomain with valid CORS headers.
2046
+ // name: "Default/Authenticated/GET/SubdomainOwner",
2047
+ // app: func(details *Details) App { return details.Apps.AuthenticatedCORSDefault },
2048
+ // client: ownerClient,
2049
+ // origin: ownSubdomain,
2050
+ // httpMethod: http.MethodGet,
2051
+ // expectedStatusCode: http.StatusOK,
2052
+ // checkResponseHeaders: func(t *testing.T, origin string, resp http.Header) {
2053
+ // assert.Equal(t, origin, resp.Get("Access-Control-Allow-Origin"))
2054
+ // assert.Equal(t, "true", resp.Get("Access-Control-Allow-Credentials"))
2055
+ // // Added by the app handler.
2056
+ // assert.Equal(t, "simple", resp.Get("X-CORS-Handler"))
2057
+ // },
2058
+ // },
2059
2059
{
2060
2060
// Owners can't access their own apps from an external origin with valid CORS headers.
2061
2061
name : "Default/Owner/GET/ExternalOwner" ,
@@ -2109,6 +2109,10 @@ func Run(t *testing.T, appHostIsPrimary bool, factory DeploymentFactory) {
2109
2109
}),
2110
2110
})
2111
2111
2112
+ if appDetails .BlockDirect {
2113
+ t .Skip ("skipping because BlockDirect is true" )
2114
+ }
2115
+
2112
2116
// Given: a client
2113
2117
client := tc .client (t , appDetails )
2114
2118
path := appDetails .SubdomainAppURL (tc .app (appDetails )).String ()
0 commit comments