Skip to content

Commit 2c98ddc

Browse files
author
Mike Solomon
authored
Fixes trypurescript to work with Halogen example (#203)
Currently, the affjax example in Halogen does not work and returns the following response: ``` Blocked form submission to '' because the form's frame is sandboxed and the 'allow-forms' permission is not set. ``` Adding the permission fixes the issue.
1 parent 91f3716 commit 2c98ddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/public/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
}
159159

160160
function setupIFrame($ctr, data) {
161-
var $iframe = $('<iframe sandbox="allow-scripts" id="output-iframe" src="frame.html">');
161+
var $iframe = $('<iframe sandbox="allow-scripts allow-forms" id="output-iframe" src="frame.html">');
162162

163163
$ctr
164164
.empty()

0 commit comments

Comments
 (0)