Skip to content

Blocked a frame with origin "http://localhost:8080" from accessing a cross-origin frame. #6

Open
@juanetec

Description

@juanetec

Hi,
checking this plugin is giving me that Error using this piece a code:
var _url ="http://localhost:8080/uploads/etec.pdf" plugins.printjs.print(_url,'pdf');

In the servoy console shows:
ERROR org.sablo.BrowserConsole - B34E9AB:2|05D72402-845A-4B85-B44F-11D0F4073132|jramirez|Uncaught SecurityError: Blocked a frame with origin "http://localhost:8080" from accessing a cross-origin frame. http://localhost:8080/printjs/PrintJS/lib/print.min.js:1:7141 SecurityError: Blocked a frame with origin "http://localhost:8080" from accessing a cross-origin frame.

In the chrome DevTools shows:
print.min.js:1 Refused to frame 'blob:http://localhost:8080/c0659f82-9cf9-4e42-8fb2-73bd069414fd' because it violates the following Content Security Policy directive: "frame-src *".. Uncaught DOMException: Blocked a frame with origin "http://localhost:8080" from accessing a cross-origin frame. at d (http://localhost:8080/printjs/PrintJS/lib/print.min.js:1:2207) at HTMLIFrameElement.o.onload (http://localhost:8080/printjs/PrintJS/lib/print.min.js:1:2015) Not allowed to load local resource: blob:http://localhost:8080/c0659f82-9cf9-4e42-8fb2-73bd069414fd

I put this url at the browser and work fine.
Please could you say me what I am doing wrong?

I am using servoy version 2020.12.1 -releaseNumber 3623
Thanks
Juan Ramírez

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions