Skip to content

Commit

Permalink
fix: hint for subdomain gateways
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki authored May 21, 2024
1 parent 26994cf commit cf8ee65
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/subdomain_gateway_ipfs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ func TestGatewaySubdomains(t *testing.T) {
{
Name: "request for example.com/ipfs/{CIDv1} redirects to subdomain",
Hint: `
subdomains should not return payload directly,
path requests to gateways with subdomain support
should not return payload directly,
but redirect to URL with proper origin isolation
`,
Request: Request().URL("{{url}}/ipfs/{{cid}}/", gatewayURL, CIDv1),
Expand All @@ -165,7 +166,8 @@ func TestGatewaySubdomains(t *testing.T) {
{
Name: "request for example.com/ipfs/{DirCID} redirects to subdomain",
Hint: `
subdomains should not return payload directly,
path requests to gateways with subdomain support
should not return payload directly,
but redirect to URL with proper origin isolation
`,
Request: Request().URL("{{url}}/ipfs/{{cid}}/", gatewayURL, DirCID),
Expand Down

0 comments on commit cf8ee65

Please sign in to comment.