HomePhabricator

[e.cash] Add recommended security headers

Description

[e.cash] Add recommended security headers

Summary:
T3395

Add recommended headers.

Note: CSP header is added as 'report-only' so that we can confirm it does not break the site.

ref
https://nextjs.org/docs/pages/api-reference/next-config-js/headers
https://github.com/vercel/next.js/discussions/17991 for source: key to cover whole site

Test Plan:

docker build -t ecash_local .
docker run -it --rm -p 3000:3000 ecash_local
curl -I http://localhost:3000

Confirm terminal output includes headers

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D15222

Details

Provenance
bytesofmanAuthored on Jan 20 2024, 15:24
bytesofmanPushed on Jan 22 2024, 12:23
Reviewer
Restricted Project
Differential Revision
D15222: [e.cash] Add recommended security headers
Parents
rABCfbdbdc16ae0f: [chronik-client] Do not try next server if error is unrelated to server outage
Branches
Unknown
Tags
Unknown