Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : pbv93xs6fvmwgJOf33o8Z6
Small and medium business | Business Central, N...
Suggested answer

BC20 on prem Edge Print Handle by Browser

Like (0) ShareShare
ReportReport
Posted on 13 Feb 2023 14:55:24 by 834

Working with BC20 on prem, when I print to printer “Handled by Browser”, after I click print, the Edge browser printer dialog does not open and I’m unable to print.  Print preview does preview the report as I’d expect, and print “send to” “pdf document” also works.  I’m on the most current Edge, I’ve removed all Edge extensions, I’ve cleared Edge history, I’ve tried Edge from InPrivate mode, I’ve uninstalled/reinstalled Edge, I’ve rebooted, I’ve tried different BC URLS and a test SAAS site we have, all with same behavior. 

 In Chrome it works fine. 

 In Edge if I look at Developer tools I see,

 Uncaught SecurityError: Blocked a frame . . . with origin . . . from accessing a frame with origin "null".  The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "data". Protocols must match.

 Uncaught DOMException: Blocked a frame with origin . . . from accessing a cross-origin frame.

    at HTMLIFrameElement . . .

 Help?

  • Suggested answer
    Community member Profile Picture
    2 on 17 Apr 2024 at 14:14:19
    BC20 on prem Edge Print Handle by Browser
    Open the Settings in Edge.
     
     
    Search for 'PDF' and expand the PDF documents
     
     
     
    Make sure that the option to download PDF files to your device is off.
  • nickmanny Profile Picture
    136 on 11 Sep 2023 at 06:01:40
    BC20 on prem Edge Print Handle by Browser
    This error "Blocked a frame with origin from accessing a cross-origin frame" is not a bug. The same-origin policy is a security mechanism that ensures that window objects only have access to the informations they are authorized to get. To fix this issue, ensure that both the parent page and the iframe content are served from the same domain or implement Cross-Origin Communication techniques such as postMessage to safely communicate and exchange data between the two frames. 
     
    The window.postMessage() method provides a controlled mechanism to securely circumvent this Same-Origin Policy restriction. The window.postMessage() safely enables cross-origin communication between Window objects; e.g: between a page and an iframe embedded within it.
     
    postMessage(message, targetOrigin)
    postMessage(message, targetOrigin, [transfer])
     
    targetOrigin - specifies what the origin of targetWindow must be for the event to be dispatched, either as the literal string "*" (indicating no preference) or as a URI.
    If you don't have control over the content in the iframe, you won't be able to directly access its elements due to security restrictions.
     
  • John Bellinger Profile Picture
    834 on 15 Feb 2023 at 17:35:09
    RE: BC20 on prem Edge Print Handle by Browser

    We discovered that this was only happening while I was working from Edge in a specific Edge Profile.

  • Suggested answer
    Andy Sather Profile Picture
    on 14 Feb 2023 at 20:29:06
    RE: BC20 on prem Edge Print Handle by Browser

    Hello,

    If you don't get further responses to this issue, you may want to raise a support request to Microsoft support via your CSP / Partner.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,967 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading complete