Skip to content

Commit 4898cab

Browse files
committed
fix for X-Frame-Options = SAMEORIGIN, to allow CodeWorkout to be embedded in iframes by LTI consumers
1 parent 6d280cb commit 4898cab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/application.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,9 @@ class Application < Rails::Application
4040
config.feedback_timeout_padding = 300
4141

4242
config.active_record.raise_in_transactional_callbacks = true
43+
44+
# Allow iframe embedding?
45+
config.action_dispatch.default_headers.merge!(
46+
{'X-Frame-Options' => 'ALLOWALL'})
4347
end
4448
end

0 commit comments

Comments
 (0)