Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
f04a91bd
Commit
f04a91bd
authored
12 years ago
by
Thomas Müller
Browse files
Options
Downloads
Plain Diff
Merge pull request #1445 from owncloud/CSP_font
Allow loading of external fonts
parents
301afac2
5fcb35ef
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/config.sample.php
+1
-1
1 addition, 1 deletion
config/config.sample.php
lib/template.php
+1
-1
1 addition, 1 deletion
lib/template.php
with
2 additions
and
2 deletions
config/config.sample.php
+
1
−
1
View file @
f04a91bd
...
...
@@ -133,7 +133,7 @@ $CONFIG = array(
"remember_login_cookie_lifetime"
=>
60
*
60
*
24
*
15
,
/* Custom CSP policy, changing this will overwrite the standard policy */
"custom_csp_policy"
=>
"default-src \'self\'; script-src \'self\' \'unsafe-eval\'; style-src \'self\' \'unsafe-inline\'; frame-src *; img-src *"
,
"custom_csp_policy"
=>
"default-src \'self\'; script-src \'self\' \'unsafe-eval\'; style-src \'self\' \'unsafe-inline\'; frame-src *; img-src *
; font-src \'self\' data:
"
,
/* The directory where the user data is stored, default to data in the owncloud
* directory. The sqlite database is also stored here, when sqlite is used.
...
...
This diff is collapsed.
Click to expand it.
lib/template.php
+
1
−
1
View file @
f04a91bd
...
...
@@ -192,7 +192,7 @@ class OC_Template{
// Content Security Policy
// If you change the standard policy, please also change it in config.sample.php
$policy
=
OC_Config
::
getValue
(
'custom_csp_policy'
,
'default-src \'self\'; script-src \'self\' \'unsafe-eval\'; style-src \'self\' \'unsafe-inline\'; frame-src *; img-src *'
);
$policy
=
OC_Config
::
getValue
(
'custom_csp_policy'
,
'default-src \'self\'; script-src \'self\' \'unsafe-eval\'; style-src \'self\' \'unsafe-inline\'; frame-src *; img-src *
; font-src \'self\' data:
'
);
header
(
'Content-Security-Policy:'
.
$policy
);
// Standard
header
(
'X-WebKit-CSP:'
.
$policy
);
// Older webkit browsers
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment