Merge pull request #418 from standardnotes/csp-action-bar
fix: update CSP to allow action bar to download notes
This commit is contained in:
@@ -89,7 +89,7 @@ iframe(
|
|||||||
ng-attr-id='component-iframe-{{ctrl.component.uuid}}',
|
ng-attr-id='component-iframe-{{ctrl.component.uuid}}',
|
||||||
ng-if='ctrl.component && ctrl.componentValid',
|
ng-if='ctrl.component && ctrl.componentValid',
|
||||||
ng-src='{{ctrl.getUrl() | trusted}}',
|
ng-src='{{ctrl.getUrl() | trusted}}',
|
||||||
sandbox='allow-scripts allow-top-navigation-by-user-activation allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-modals allow-forms'
|
sandbox='allow-scripts allow-top-navigation-by-user-activation allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-modals allow-forms allow-downloads'
|
||||||
)
|
)
|
||||||
| Loading
|
| Loading
|
||||||
.loading-overlay(ng-if='ctrl.loading')
|
.loading-overlay(ng-if='ctrl.loading')
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ module StandardNotes
|
|||||||
base_uri: %w('self'),
|
base_uri: %w('self'),
|
||||||
block_all_mixed_content: false, # see http://www.w3.org/TR/mixed-content/
|
block_all_mixed_content: false, # see http://www.w3.org/TR/mixed-content/
|
||||||
child_src: ["*", "blob:"],
|
child_src: ["*", "blob:"],
|
||||||
frame_src: ["*", "blob:"],
|
frame_src: ["*", "blob:", "data:"],
|
||||||
connect_src: ["*"],
|
connect_src: ["*"],
|
||||||
font_src: %w(* 'self'),
|
font_src: %w(* 'self'),
|
||||||
form_action: %w('self'),
|
form_action: %w('self'),
|
||||||
|
|||||||
Reference in New Issue
Block a user