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
Refused to display 'https://www.google.com/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
Sandbox access violation: Blocked a frame at "http://localhost:3000" from accessing a frame at "https://www.google.com". The frame being accessed is sandboxed and lacks the "allow-same-origin" flag.
Reproduction
const webviewRef = useRef<Webview | null>(null);
useEffect(() => {
// Create a new window for the webview
let appWindow = new Window("AppFrameWindow"+appName);
appWindow = getCurrentWebviewWindow()
// Generate a unique ID for the webview
const id = `webview${Math.ceil(Math.random() * 1000)}`;
// Define the webview options
const options: WebviewOptions = {
url: appUrl, // Use the provided appUrl
x: 0,
y: 0,
width: 1024,
height: 500, // Match the height of the iframe
};
// Create the webview
const webview = new Webview(appWindow, id, options);
// Store the webview instance in the ref
webviewRef.current = webview;
// Handle webview creation and errors
webview.once("tauri://created", () => {
console.log("Webview successfully created");
});
webview.once("tauri://error", (e) => {
console.error("Webview error:", e);
});
// Cleanup when the component unmounts
return () => {
if (webviewRef.current) {
webviewRef.current.close(); // Close the webview
}
};
}, [appUrl])
Expected behavior
WOrks loads google.com ..
Full tauri info output
Latest
Stack trace
Additional context
No response
The text was updated successfully, but these errors were encountered:
We cannot "fix"/disable this. If websites don't want to be embedded in iframes then they can't be embedded. An alternative would be the unstable multiwebview feature i guess but that's still very WIP.
Describe the bug
Refused to display 'https://www.google.com/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
Sandbox access violation: Blocked a frame at "http://localhost:3000" from accessing a frame at "https://www.google.com". The frame being accessed is sandboxed and lacks the "allow-same-origin" flag.
Reproduction
Expected behavior
WOrks loads google.com ..
Full
tauri info
outputStack trace
Additional context
No response
The text was updated successfully, but these errors were encountered: