Skip to content
This repository has been archived by the owner on Dec 6, 2018. It is now read-only.

Add 'allow="vr"' Feature Policy attribute to iframe to permit WebVR #277

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/api/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ Player.prototype.createIframe_ = function(contentInfo) {
var iframe = document.createElement('iframe');
iframe.setAttribute('allowfullscreen', true);
iframe.setAttribute('scrolling', 'no');
iframe.setAttribute('allow', 'vr');
iframe.style.border = 0;

// Handle iframe size if width and height are specified.
Expand Down