-
Notifications
You must be signed in to change notification settings - Fork 684
Open
Description
Can't print in safari Version 18.5 (20621.2.5.11.8), latest as of now.
SecurityError: Sandbox access violation: Blocked a frame at "https://staging.england.medicus.health" from accessing a cross-origin frame. The frame being accessed is sandboxed and lacks the "allow-same-origin" flag
Our URL is the same https://my.url.com
Works in Chrome and code generated is -
<iframe style="visibility: hidden; height: 0; width: 0; position: absolute; border: 0" id="printJS" src="blob:https://my.url.com/9e5d2c29-863e-45fc-b4ff-ec25d52b04c1"></iframe>
our code
printJS({
printable: url,
type: "pdf",
onError: rej,
onPrintDialogClose: res,
});
How can we add the required attributes ? Suggested required are -
sandbox="allow-same-origin allow-scripts allow-forms allow-popups"
Metadata
Metadata
Assignees
Labels
No labels