So my objective is to allow the user to input a SMS 2FA Pin, which will get sent only 5-10seconds after the test is run.
I was trying to do it by
1) testcafe remote bizfile.test.js
2) using the Connect URL provided, add it into this html file.
<input type="text" name="optpin">
<input type="submit" value="Submit">
<iframe src="http://192.168.1.16:60980/browser/connect" frameborder="0" style="overflow:hidden;height:100%;width:100%" height="100%" width="100%"></iframe>
Idea is for the submit button to write to a file, which testcafe then reads and uses to login.
However i'm getting a CORS error: Refused to display 'http://192.168.1.16:60980/SJSttDMNb/blahblah in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Been trying to find any docs to see if i can allow cross origin within the testcafe remote feature.
On the other hand, if this gets to production, its planned to be hosted on the same domain so if i could allow CORS its mostly to help with inital local dev.