Skip to content

Commit

Permalink
docs: add comment explainer
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Apr 3, 2023
1 parent 59b36e2 commit b741016
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/gateway/common/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ func NewHandler(gwAPI gateway.IPFSBackend) http.Handler {
// If you set DNSLink to point at the CID from CAR, you can load it!
NoDNSLink: false,

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

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

0 comments on commit b741016

Please sign in to comment.