Cross Reference: security_headers.rb
xref
: /
ontohub
/
config
/
initializers
/
security_headers.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
security_headers.rb revision 450c425d47cb4ff346c009bf6193057cee85fcc6
353
N/A
::
SecureHeaders
::
Configuration.default
do
|
config
|
353
N/A
config.hsts
=
'max-age=99; includeSubdomains'
353
N/A
config.x
_frame_options
=
'DENY'
353
N/A
config.x
_content_type_options
=
'nosniff'
353
N/A
config.x
_xss_protection
=
'1; mode=block'
353
N/A
# By default, load resources only from own origin.
353
N/A
# For CSS, allow styles from style elements and attributes for GWT.
353
N/A
config.csp
=
{
353
N/A
default_src
: %w
(
'self'
)
,
353
N/A
style_src
: %w
(
'self' 'unsafe-inline'
)
,
353
N/A
script_src
: %w
(
'self'
)
,
353
N/A
frame_src
: %w
(
'self'
)
,
353
N/A
img_src
: %w
(
'self'
)
,
353
N/A
connect_src
: %w
(
'self'
)
,
353
N/A
font_src
: %w
(
'self'
)
,
353
N/A
media_src
: %w
(
'self'
)
,
353
N/A
object_src
: %w
(
'self'
)
,
353
N/A
child_src
: %w
(
'self'
)
,
353
N/A
}
353
N/A
end
353
N/A