Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Don't restrict forms in CSP (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudloff committed Nov 4, 2020
1 parent 17422d8 commit c0b2acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Middleware/CspMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ public function applyHeader(Response $response)
$csp->addDirective('default-src', [])
->addDirective('font-src', ['self' => true])
->addDirective('style-src', ['self' => true])
->addDirective('form-action', ['self' => true])
->addDirective('manifest-src', ['self' => true])
->addDirective('base-uri', [])
->addDirective('frame-ancestors', [])
->addSource('form-action', '*')
->addSource('img-src', '*');

if ($this->config->debug) {
Expand Down

0 comments on commit c0b2acf

Please sign in to comment.