Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugbar not showing in embed iframe #650

Closed
bastos71 opened this issue Apr 12, 2024 · 1 comment · Fixed by #651
Closed

Debugbar not showing in embed iframe #650

bastos71 opened this issue Apr 12, 2024 · 1 comment · Fixed by #651

Comments

@bastos71
Copy link

Hello, i'm devloping Shopify Apps under Laravel framework, which is using php-debugbar package

Because of this line, we cannot print the debug bar :

this.isIframe = window.self !== window.top;

The concept of shopify apps is really simple : embed apps into an iframe, so it makes it completely incompatible with the debug bar, and generates the following error :

Uncaught DOMException: Failed to read a named property 'phpdebugbar' from 'Window': Blocked a frame with origin "https://[subdomain].ngrok-free.app" from accessing a cross-origin frame.
    at child.addDataSet (https://[subdomain].ngrok-free.app/_debugbar/assets/javascript?v=1712740545:949:28)
    at https://[subdomain].ngrok-free.app/admin/dashboard?shop=[subdomain].myshopify.com&host=[...]:633:13

What should we do ?

@bastos71 bastos71 changed the title PHP Debug bar Debugbar not showing in embed iframe Apr 12, 2024
@erikn69
Copy link
Contributor

erikn69 commented Apr 12, 2024

cross-origin problem, try #651

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants