Skip to content

Commit

Permalink
Merge pull request #2303 from alphagov/fix-high-vulnerability-node-mo…
Browse files Browse the repository at this point in the history
…dules

update high vulnerability node modules
  • Loading branch information
BenSurgisonGDS authored Aug 24, 2023
2 parents 1b32cf0 + cb97fdd commit 6f7b514
Show file tree
Hide file tree
Showing 4 changed files with 776 additions and 3,685 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Fixes

- [#2303: Update high vulnerability node modules](https://github.com/alphagov/govuk-prototype-kit/pull/2303)

## 13.12.1

### Fixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,16 @@ describe('Management plugins: ', () => {
after(restoreStarterFiles)

it('CSRF Protection on POST action', () => {
// Load the plugins page, so we don't get any network errors when running the test
loadPluginsPage()
// Now run the test
const installUrl = `${managePluginsPagePath}/install`
cy.task('log', `Posting to ${installUrl} without csrf protection`)
cy.request({
url: `${managePluginsPagePath}/install`,
method: 'POST',
failOnStatusCode: false,
body: { package: plugin },
retryOnNetworkFailure: true,
timeout: 4000
body: { package: plugin }
}).then(response => {
expect(response.status).to.eq(403)
expect(response.body).to.have.property('error', 'invalid csrf token')
Expand Down
Loading

0 comments on commit 6f7b514

Please sign in to comment.