We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c86ad8 commit 5fd4d3cCopy full SHA for 5fd4d3c
app/controllers/lti13/launches_controller.rb
@@ -335,10 +335,11 @@ def launch_params
335
336
#TODO:
337
#same origin issue with X-frame-Options
338
- #remove hardcoded canvas instance and set a dynamic CSP to allow iframe
339
-
+ #remove hardcoded canvas instance and set a dynamic CSP to allow iframe
340
def allow_iframe
341
response.headers.except! 'X-Frame-Options'
+ 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}"
343
response.headers['Content-Security-Policy'] = "frame-ancestors 'self' https://canvas.endeavour.cs.vt.edu"
344
end
345
0 commit comments