Skip to content

Commit 5fd4d3c

Browse files
committed
inspect x-frames options method
1 parent 8c86ad8 commit 5fd4d3c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/controllers/lti13/launches_controller.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,11 @@ def launch_params
335335

336336
#TODO:
337337
#same origin issue with X-frame-Options
338-
#remove hardcoded canvas instance and set a dynamic CSP to allow iframe
339-
338+
#remove hardcoded canvas instance and set a dynamic CSP to allow iframe
340339
def allow_iframe
341340
response.headers.except! 'X-Frame-Options'
341+
Rails.logger.info "Response headers after removing X-Frame-Options: #{response.headers.inspect}"
342+
puts "Response headers after removing X-Frame-Options: #{response.headers.inspect}"
342343
response.headers['Content-Security-Policy'] = "frame-ancestors 'self' https://canvas.endeavour.cs.vt.edu"
343344
end
344345
end

0 commit comments

Comments
 (0)