Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
9352f3b1
Commit
9352f3b1
authored
Feb 16, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_js_style: display data uri image
parent
cd343f79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
bt5/erp5_web_js_style/SkinTemplateItem/portal_skins/erp5_web_js_style_ui/WebSection_generateContentSecurityPolicy.py
...b_js_style_ui/WebSection_generateContentSecurityPolicy.py
+1
-1
bt5/erp5_web_js_style_test/PathTemplateItem/portal_tests/js_style_zuite/testJsStyleContentSecurityPolicy.zpt
...tests/js_style_zuite/testJsStyleContentSecurityPolicy.zpt
+5
-5
No files found.
bt5/erp5_web_js_style/SkinTemplateItem/portal_skins/erp5_web_js_style_ui/WebSection_generateContentSecurityPolicy.py
View file @
9352f3b1
content_security_policy
=
"default-src 'self'"
content_security_policy
=
"default-src 'self'
; img-src 'self' data:
"
if
no_style_gadget_url
:
content_security_policy
+=
"; frame-src 'self' https://www.youtube-nocookie.com/embed/"
...
...
bt5/erp5_web_js_style_test/PathTemplateItem/portal_tests/js_style_zuite/testJsStyleContentSecurityPolicy.zpt
View file @
9352f3b1
...
...
@@ -32,7 +32,7 @@
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//head/meta[@http-equiv='Content-Security-Policy' and @content="default-src 'self'; script-src 'none'"]
</td>
<td>
//head/meta[@http-equiv='Content-Security-Policy' and @content="default-src 'self';
img-src 'self' data:;
script-src 'none'"]
</td>
<td></td>
</tr>
...
...
@@ -54,7 +54,7 @@
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//head/meta[@http-equiv='Content-Security-Policy' and @content="default-src 'self'; script-src 'none'"]
</td>
<td>
//head/meta[@http-equiv='Content-Security-Policy' and @content="default-src 'self';
img-src 'self' data:;
script-src 'none'"]
</td>
<td></td>
</tr>
...
...
@@ -79,7 +79,7 @@
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//head/meta[@http-equiv='Content-Security-Policy' and @content="default-src 'self'; frame-src 'self' https://www.youtube-nocookie.com/embed/"]
</td>
<td>
//head/meta[@http-equiv='Content-Security-Policy' and @content="default-src 'self';
img-src 'self' data:;
frame-src 'self' https://www.youtube-nocookie.com/embed/"]
</td>
<td></td>
</tr>
...
...
@@ -101,7 +101,7 @@
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//head/meta[@http-equiv='Content-Security-Policy' and @content="default-src 'self'; frame-src 'self' https://www.youtube-nocookie.com/embed/"]
</td>
<td>
//head/meta[@http-equiv='Content-Security-Policy' and @content="default-src 'self';
img-src 'self' data:;
frame-src 'self' https://www.youtube-nocookie.com/embed/"]
</td>
<td></td>
</tr>
...
...
@@ -115,7 +115,7 @@
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//head/meta[@http-equiv='Content-Security-Policy' and @content="default-src 'self'; script-src 'none'"]
</td>
<td>
//head/meta[@http-equiv='Content-Security-Policy' and @content="default-src 'self';
img-src 'self' data:;
script-src 'none'"]
</td>
<td></td>
</tr>
...
...
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