We've written a new guide on Fetch Metadata! Fetch metadata is a group of HTTP r...

@openwebdocs@front-end.social

We've written a new guide on Fetch Metadata!

Fetch metadata is a group of HTTP request headers.

They tell you if requests are navigation between documents, request for a subresource, or requests made from JavaScript, and whether they are same-origin, or same-site, or from completely different sites.

Thanks to this information, you can implement defenses against cross-origin attacks such as cross-site request forgeries (CSRF) and various cross-site leaks.

developer.mozilla.org/en-US/do