HomePhabricator

[e.cash] modify CSP headers for dev mode

Description

[e.cash] modify CSP headers for dev mode

Summary:
The site was not running right in dev mode with the newly enforced CSP headers. Adding a conditional value for dev mode
that should fix this

Test Plan:
to see the issue: npm run dev on master branch
Should see basically all of the content blocked from headers

then try npm run dev on this branch. Site should load as expected
Can go to the networks tab and check localhost response headers to see the CSP values

then preview with the bot and check the headers to see 'self' is no longer there

Reviewers: #bitcoin_abc, bytesofman

Reviewed By: #bitcoin_abc, bytesofman

Subscribers: bytesofman

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

Details

Provenance
johnkuneyAuthored on Jan 24 2024, 18:23
johnkuneyPushed on Jan 24 2024, 18:24
Reviewer
Restricted Project
Differential Revision
D15266: [e.cash] modify CSP headers for dev mode
Parents
rABC4a29cea35be1: [Cashtab] Stop supporting no-API loading of legacy wallet formats
Branches
Unknown
Tags
Unknown