Skip to content

Commit

Permalink
Add security headers (#7060)
Browse files Browse the repository at this point in the history
* add security headers

* modified the death report test

---------

Co-authored-by: Mohammed Nihal <[email protected]>
  • Loading branch information
sainak and nihal467 authored Jan 19, 2024
1 parent 1025347 commit 85b6a30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions cypress/e2e/death_report_spec/death_report.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ describe("Death Report", () => {
beforeEach(() => {
cy.restoreLocalStorage();
cy.clearLocalStorage(/filters--.+/);
cy.awaitUrl("/");
cy.awaitUrl("/patients");
cy.intercept("**/api/v1/patient/**").as("getPatients");
cy.get("#facility-patients").contains("Patients").click({ force: true });
cy.url().should("include", "/patients");
cy.wait("@getPatients").get("a[data-cy=patient]").first().click();
cy.url().then((url) => {
Expand Down
6 changes: 3 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ status = 200
[[headers]]
for = "/*"
[headers.values]
cache-control = '''
max-age=0,
no-store'''
cache-control = "max-age=0, no-store"
X-Frame-Options = "DENY"
X-Content-Type-Options = "nosniff"

0 comments on commit 85b6a30

Please sign in to comment.