Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
d5b2bf9f
Commit
d5b2bf9f
authored
Oct 31, 2021
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix baidu tongji
parent
d68c799a
Pipeline
#91
canceled with stages
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
3 additions
and
10 deletions
+3
-10
http_error.html
cps/templates/http_error.html
+0
-1
layout.html
cps/templates/layout.html
+0
-1
listenmp3.html
cps/templates/listenmp3.html
+1
-2
read.html
cps/templates/read.html
+0
-1
readcbr.html
cps/templates/readcbr.html
+0
-1
readtxt.html
cps/templates/readtxt.html
+0
-1
shelfdown.html
cps/templates/shelfdown.html
+0
-1
web.py
cps/web.py
+2
-2
No files found.
cps/templates/http_error.html
View file @
d5b2bf9f
...
...
@@ -6,7 +6,6 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
http-equiv=
"Content-Security-Policy"
content=
"script-src 'self' http://hm.baidu.com 'unsafe-inline' 'unsafe-eval'"
>
<script>
var
_hmt
=
_hmt
||
[];
(
function
()
{
...
...
cps/templates/layout.html
View file @
d5b2bf9f
...
...
@@ -7,7 +7,6 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
http-equiv=
"Content-Security-Policy"
content=
"script-src 'self' http://hm.baidu.com 'unsafe-inline' 'unsafe-eval'"
>
<script>
var
_hmt
=
_hmt
||
[];
(
function
()
{
...
...
cps/templates/listenmp3.html
View file @
d5b2bf9f
...
...
@@ -8,7 +8,6 @@
<meta
name=
"description"
content=
""
>
<meta
name=
"viewport"
content=
"width=device-width"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
http-equiv=
"Content-Security-Policy"
content=
"script-src 'self' http://hm.baidu.com 'unsafe-inline' 'unsafe-eval'"
>
<script>
var
_hmt
=
_hmt
||
[];
(
function
()
{
...
...
@@ -18,7 +17,7 @@
s
.
parentNode
.
insertBefore
(
hm
,
s
);
})();
</script>
<script
src=
"{{ url_for('static', filename='js/libs/jquery.min.js') }}"
></script>
<script
src=
"{{ url_for('static', filename='js/libs/soundmanager2.js') }}"
></script>
<script
src=
"{{ url_for('static', filename='js/libs/bar-ui.js') }}"
></script>
...
...
cps/templates/read.html
View file @
d5b2bf9f
...
...
@@ -7,7 +7,6 @@
<meta
name=
"description"
content=
""
>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
http-equiv=
"Content-Security-Policy"
content=
"script-src 'self' http://hm.baidu.com 'unsafe-inline' 'unsafe-eval'"
>
<script>
var
_hmt
=
_hmt
||
[];
(
function
()
{
...
...
cps/templates/readcbr.html
View file @
d5b2bf9f
...
...
@@ -7,7 +7,6 @@
<title>
{{_('Comic Reader')}} | {{title}}
</title>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
http-equiv=
"Content-Security-Policy"
content=
"script-src 'self' http://hm.baidu.com 'unsafe-inline' 'unsafe-eval'"
>
<script>
var
_hmt
=
_hmt
||
[];
(
function
()
{
...
...
cps/templates/readtxt.html
View file @
d5b2bf9f
...
...
@@ -7,7 +7,6 @@
<meta
name=
"description"
content=
""
>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
http-equiv=
"Content-Security-Policy"
content=
"script-src 'self' http://hm.baidu.com 'unsafe-inline' 'unsafe-eval'"
>
<script>
var
_hmt
=
_hmt
||
[];
(
function
()
{
...
...
cps/templates/shelfdown.html
View file @
d5b2bf9f
...
...
@@ -6,7 +6,6 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
http-equiv=
"Content-Security-Policy"
content=
"script-src 'self' http://hm.baidu.com 'unsafe-inline' 'unsafe-eval'"
>
<script>
var
_hmt
=
_hmt
||
[];
(
function
()
{
...
...
cps/web.py
View file @
d5b2bf9f
...
...
@@ -83,8 +83,8 @@ except ImportError:
@
app
.
after_request
def
add_security_headers
(
resp
):
resp
.
headers
[
'Content-Security-Policy'
]
=
"default-src 'self' 'unsafe-inline' 'unsafe-eval'; font-src 'self' data:; img-src 'self' data:"
if
request
.
endpoint
==
"editbook.edit_book"
or
config
.
config_use_google_drive
:
resp
.
headers
[
'Content-Security-Policy'
]
+=
" *"
#
if request.endpoint == "editbook.edit_book" or config.config_use_google_drive:
resp
.
headers
[
'Content-Security-Policy'
]
+=
" *"
resp
.
headers
[
'X-Content-Type-Options'
]
=
'nosniff'
resp
.
headers
[
'X-Frame-Options'
]
=
'SAMEORIGIN'
resp
.
headers
[
'X-XSS-Protection'
]
=
'1; mode=block'
...
...
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