Skip to content

Commit 65a18ff

Browse files
committed
allow iframe embed for lti1.3
1 parent 74ab835 commit 65a18ff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/controllers/lti13/launches_controller.rb

+5
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,12 @@ def launch_params
333333
params.require(:launch).permit(:jwt, :decoded_jwt, :tool_id, :state)
334334
end
335335

336+
#TODO:
337+
#same origin issue with X-frame-Options
338+
#remove hardcoded canvas instance and set a dynamic CSP to allow iframe
339+
336340
def allow_iframe
337341
response.headers.except! 'X-Frame-Options'
342+
response.headers['Content-Security-Policy'] = "frame-ancestors 'self' https://canvas.endeavour.cs.vt.edu"
338343
end
339344
end

0 commit comments

Comments
 (0)