Skip to content

Commit

Permalink
fix: hint for subdomain gateways (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki authored May 22, 2024
1 parent 26994cf commit c0dafe1
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 c0dafe1

Please sign in to comment.