Skip to content

Commit b741016

Browse files
committed
docs: add comment explainer
1 parent 59b36e2 commit b741016

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

examples/gateway/common/handler.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ func NewHandler(gwAPI gateway.IPFSBackend) http.Handler {
1717
// If you set DNSLink to point at the CID from CAR, you can load it!
1818
NoDNSLink: false,
1919

20+
// For these examples we have the trusted mode enabled by default. That is,
21+
// all types of requests will be accepted. By default, only Trustless Gateway
22+
// requests work: https://specs.ipfs.tech/http-gateways/trustless-gateway/
2023
TrustedMode: true,
2124

2225
// Initialize the public gateways that we will want to have available through

0 commit comments

Comments
 (0)