Commit Graph
2 Commits
Author SHA1 Message Date
Rohan KumarandDaniel Micay d6fd0df002 Add "Origin-Agent-Cluster" header
Hint to browsers that we prefer per-origin process isolation. This
disables certain unsafe features regarding cross-origin same-site
resource sharing.

https://web.dev/origin-agent-cluster/#limitations

Specification link:
https://html.spec.whatwg.org/multipage/origin.html#origin-keyed-agent-clusters

This is just a hint to browsers. Depending on resource availability,
they may or may not actually allocate a process. For this reason, it's
not a robust security feature although it is preferable.

This header needs to be active on all pages from an origin for it to
work.
2022-08-25 23:15:08 -04:00
Rohan KumarandDaniel Micay 9918b7cc77 Nginx regex: don't capture groups unnecessarily
Good regex form: use "?:" to specify non-capturing groups when sections
don't actually reference matched groups. There's no use saving a capture
in these situations.
2021-11-11 14:59:35 -05:00