This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Override CSP setting in the embed controller to allow frames
closed-social-glitch-2
Thibaut Girka
6 years ago
committed by
ThibG
parent
e7a72439f1
commit
628fca50e2
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
app/controllers/statuses_controller.rb
+ 4
- 0
app/controllers/statuses_controller.rb
View File
@ -19,6 +19,10 @@ class StatusesController < ApplicationController
before_action
:set_referrer_policy_header
,
only
:
[
:show
]
before_action
:set_cache_headers
content_security_policy
only
:
:embed
do
|
p
|
p
.
frame_ancestors
(
false
)
end
def
show
respond_to
do
|
format
|
format
.
html
do
Write
Preview
Loading…
Cancel
Save