Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LINAGORA
L
LGS
Labs
voice-web
Commits
c7d8fc7f
Commit
c7d8fc7f
authored
Oct 02, 2017
by
Michael Henretty
Browse files
allow base64 audio clips in CSP
parent
1650efa5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
nubis/puppet/web.pp
nubis/puppet/web.pp
+1
-1
server/src/server.ts
server/src/server.ts
+1
-1
No files found.
nubis/puppet/web.pp
View file @
c7d8fc7f
...
...
@@ -77,7 +77,7 @@ apache::vhost { $project_name:
'set X-Frame-Options "DENY"'
,
'set Strict-Transport-Security "max-age=31536000"'
,
# media-src blob: is required for recording audio.
'set Content-Security-Policy "default-src \'none\'; style-src \'self\'; img-src \'self\' www.google-analytics.com; media-src blob: https://*.amazonaws.com; script-src \'self\' https://www.google-analytics.com/analytics.js; font-src \'self\'; connect-src \'self\'"'
'set Content-Security-Policy "default-src \'none\'; style-src \'self\'; img-src \'self\' www.google-analytics.com; media-src
data:
blob: https://*.amazonaws.com; script-src \'self\' https://www.google-analytics.com/analytics.js; font-src \'self\'; connect-src \'self\'"'
],
rewrites
=>
[
{
...
...
server/src/server.ts
View file @
c7d8fc7f
...
...
@@ -25,7 +25,7 @@ export default class Server {
cache
:
false
,
headers
:
{
'
Content-Security-Policy
'
:
"
default-src 'none'; style-src 'self'; img-src 'self' www.google-analytics.com; media-src blob: https://*.amazonaws.com; script-src 'self' https://www.google-analytics.com/analytics.js; font-src 'self'; connect-src 'self'
"
,
"
default-src 'none'; style-src 'self'; img-src 'self' www.google-analytics.com; media-src
data:
blob: https://*.amazonaws.com; script-src 'self' https://www.google-analytics.com/analytics.js; font-src 'self'; connect-src 'self'
"
,
},
}
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment