Javascript Error when I select "print to pdf":
VM58:18 Uncaught DOMException: Blocked a frame with origin "https://xxxxx.xxxxx.xx" from accessing a cross-origin frame.
at HTMLIFrameElement.t.onload (<anonymous>:18:15950)
I´m opening the report in a new window in the browser
Thanks
JB
Print options - Error
Re: Print options - Error
Hello,
What version of our tool and what browser do you use?
Thank you.
What version of our tool and what browser do you use?
Thank you.
Re: Print options - Error
Good afternoon. I have a similar problem.
Chrome 110.0.5481.104
Stimulsoft 2020.5.2
Vue.js 3.2
.net core 6
Steps to reproduce
1. In the Chrome settings, enable downloading PDF files instead of opening for viewing
2. Open the report preview and click the Print -> PDF button
Error is triggered
Please tell me how to solve this problem
Chrome 110.0.5481.104
Stimulsoft 2020.5.2
Vue.js 3.2
.net core 6
Steps to reproduce
1. In the Chrome settings, enable downloading PDF files instead of opening for viewing
2. Open the report preview and click the Print -> PDF button
Error is triggered
Code: Select all
Uncaught DOMException: Blocked a frame with origin "...." from accessing a cross-origin frame.
-
- Posts: 6263
- Joined: Tue Mar 20, 2018 5:34 am
Re: Print options - Error
Hello,
Please try to check the last release build.
Thank you.
Please try to check the last release build.
Thank you.
Re: Print options - Error
The "Blocked a frame with origin from accessing a cross-origin frame" error is triggered by the Same-Origin Policy in web browsers, which prevents scripts in one frame from directly accessing content in a frame from a different origin due to security concerns. To address this issue, you should employ cross-origin communication techniques such as postMessage() for controlled messaging between frames, configure Cross-Origin Resource Sharing (CORS) headers when controlling both source and destination servers, or use JSONP for data retrieval. Verify proper URL configuration, consider server-side solutions, and adhere to browser extension policies. These measures ensure secure and legitimate interactions between frames without violating the security constraints imposed by the Same-Origin Policy.
-
- Posts: 6263
- Joined: Tue Mar 20, 2018 5:34 am
Re: Print options - Error
Hello,
Thank you for the information.
Thank you for the information.