Skip to content

Iframe is not loading in browser extensions #1348

@daniiba

Description

@daniiba

Hey, I'm getting this error when trying to use the SDK in a browser extension. If I understand it correctly when using extensionId param in the CrossmintProvider it should pass this through in the headers of an api call, but I guess it's limited in the Iframe.

Refused to frame 'https://signers.crossmint.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors ". Note that '' matches only URLs with network schemes ('http', 'https', 'ws', 'wss'), or URLs whose scheme matches self's scheme. The scheme 'https:' must be added explicitly.

I'm guessing this is happening in the ncs-iframe-manager.ts

 this.handshakeParent = await IFrameWindow.init(
            iframeElement,
            {
                targetOrigin: iframeUrl.origin,
                incomingEvents: signerOutboundEvents,
                outgoingEvents: signerInboundEvents,
            },
            SignersWindowTransport
        );

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