-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(subdomain-gw): no API endpoint on subdomain root
This removes API endpoint from subdomains that represent arbitrary content roots, eg. $cid.ipfs.localhost/api/v0. Main reason: $cid could have a subdirectory or a file named "api" which would be eclipsed and not reachable due to /api/v0 being mounted on top of it. API is still available at the root hostname localhost/api/v0 We also added test to ensure similar eclipse does not happen if someone sets up DNSLink-only gateway and tries to load /ipfs/* paths. #6096 (comment) License: MIT Signed-off-by: Marcin Rataj <[email protected]>
- Loading branch information
Showing
2 changed files
with
74 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters