Skip to content

Commit c214f8c

Browse files
committed
Update RequestsController.php
Unsets the Content-Security-Policy "inside" the iframe. The iframe will be loaded with user's CSP, but doesn't need any CSP inside the iframe as it will just be used in development. Force unset, as it could be set anywhere else in the user's original application.
1 parent edf0afa commit c214f8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/RequestsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function beforeFilter(Event $event)
3737
throw new NotFoundException();
3838
}
3939

40-
$this->response->header(['Content-Security-Policy' => "default-src 'self'; style-src 'self' fonts.googleapis.com; font-src 'self' fonts.gstatic.com"]);
40+
$this->response->header(['Content-Security-Policy' => '']);
4141
}
4242

4343
/**

0 commit comments

Comments
 (0)