Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
328ea80c
Unverified
Commit
328ea80c
authored
May 28, 2020
by
Carl Bergquist
Committed by
GitHub
May 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switches default value for security settings (#25175)
closes #25163
parent
3833aa41
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
conf/defaults.ini
+4
-4
conf/sample.ini
+4
-4
pkg/setting/setting.go
+2
-2
No files found.
conf/defaults.ini
View file @
328ea80c
...
...
@@ -202,12 +202,12 @@ strict_transport_security_subdomains = false
# Set to true to enable the X-Content-Type-Options response header.
# The X-Content-Type-Options response HTTP header is a marker used by the server to indicate that the MIME types advertised
# in the Content-Type headers should not be changed and be followed.
The default will change to true in the next minor release, 6.3.
x_content_type_options
=
fals
e
# in the Content-Type headers should not be changed and be followed.
x_content_type_options
=
tru
e
# Set to true to enable the X-XSS-Protection header, which tells browsers to stop pages from loading
# when they detect reflected cross-site scripting (XSS) attacks.
The default will change to true in the next minor release, 6.3.
x_xss_protection
=
fals
e
# when they detect reflected cross-site scripting (XSS) attacks.
x_xss_protection
=
tru
e
#################################### Snapshots ###########################
...
...
conf/sample.ini
View file @
328ea80c
...
...
@@ -203,12 +203,12 @@
# Set to true to enable the X-Content-Type-Options response header.
# The X-Content-Type-Options response HTTP header is a marker used by the server to indicate that the MIME types advertised
# in the Content-Type headers should not be changed and be followed.
The default will change to true in the next minor release, 6.3.
;x_content_type_options =
fals
e
# in the Content-Type headers should not be changed and be followed.
;x_content_type_options =
tru
e
# Set to true to enable the X-XSS-Protection header, which tells browsers to stop pages from loading
# when they detect reflected cross-site scripting (XSS) attacks.
The default will change to true in the next minor release, 6.3.
;x_xss_protection =
fals
e
# when they detect reflected cross-site scripting (XSS) attacks.
;x_xss_protection =
tru
e
#################################### Snapshots ###########################
[snapshots]
...
...
pkg/setting/setting.go
View file @
328ea80c
...
...
@@ -751,8 +751,8 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error {
AllowEmbedding
=
security
.
Key
(
"allow_embedding"
)
.
MustBool
(
false
)
ContentTypeProtectionHeader
=
security
.
Key
(
"x_content_type_options"
)
.
MustBool
(
fals
e
)
XSSProtectionHeader
=
security
.
Key
(
"x_xss_protection"
)
.
MustBool
(
fals
e
)
ContentTypeProtectionHeader
=
security
.
Key
(
"x_content_type_options"
)
.
MustBool
(
tru
e
)
XSSProtectionHeader
=
security
.
Key
(
"x_xss_protection"
)
.
MustBool
(
tru
e
)
StrictTransportSecurity
=
security
.
Key
(
"strict_transport_security"
)
.
MustBool
(
false
)
StrictTransportSecurityMaxAge
=
security
.
Key
(
"strict_transport_security_max_age_seconds"
)
.
MustInt
(
86400
)
StrictTransportSecurityPreload
=
security
.
Key
(
"strict_transport_security_preload"
)
.
MustBool
(
false
)
...
...
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