Documentation
¶
Overview ¶
Package fetchmetadata reads the Fetch Metadata request headers (Sec-Fetch-*) browsers send. Its functions are safe for concurrent use.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RefuseCrossSite ¶
RefuseCrossSite refuses a request the browser marks Sec-Fetch-Site: cross-site (a link, form or redirect from another site) with *auth.Error ErrForbidden; same-origin, same-site, user-initiated (none) and requests without the header (older browsers, non-browser clients) pass with nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.