You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wondering if I'm doing something wrong or iFrame allow support is not yet available. I'm not able to get javascript access to user agent hints (only works on localhost) within an iframe. Need some guidance on how to use allow in a cross-domain setting to be able to access navigator.userAgentData from a script executed from an iframe.
For example:
var iframe = doc.createElement("iframe");
iframe.sandbox = "allow-scripts";
iframe.allow = "ch-ua *; ch-ua-model *";
Is this approach correct? I'm able to access navigator.userAgentData from the page that creates the frame.
The text was updated successfully, but these errors were encountered:
It's working for me in jsfiddle (which I believe executes the code in a third-party iframe) https://jsfiddle.net/653kgemv/
Are you getting any console messages and/or are you able to see the results from other scripts you run? Is navigator.userAgentData just returning nothing?
Wondering if I'm doing something wrong or iFrame allow support is not yet available. I'm not able to get javascript access to user agent hints (only works on localhost) within an iframe. Need some guidance on how to use allow in a cross-domain setting to be able to access navigator.userAgentData from a script executed from an iframe.
For example:
var iframe = doc.createElement("iframe");
iframe.sandbox = "allow-scripts";
iframe.allow = "ch-ua *; ch-ua-model *";
Is this approach correct? I'm able to access navigator.userAgentData from the page that creates the frame.
The text was updated successfully, but these errors were encountered: