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

Requests to the server have been blocked by an extension. #118

Closed
felix-two-tone opened this issue Jul 21, 2020 · 14 comments
Closed

Requests to the server have been blocked by an extension. #118

felix-two-tone opened this issue Jul 21, 2020 · 14 comments

Comments

@felix-two-tone
Copy link

felix-two-tone commented Jul 21, 2020

Update to [NextCloud] 19.0.1 and now draw.io will not load at all. It will give the message

Requests to the server have been blocked by an extension.

This is on Edge 84.0.522.40, and on Firefox it will just not load a page or errors.

@davidjgraph
Copy link

Is that using the draw.io online site or your own hosted draw.io?

@felix-two-tone
Copy link
Author

felix-two-tone commented Jul 21, 2020

This is using draw.io online site, I setup a docker with a draw.io instance and it also did not load. I don't know if I have to configure the instance to work with it though.

@davidjgraph
Copy link

We started redirecting draw.io today. What's the URL it's trying to access and is it getting redirected?

@felix-two-tone
Copy link
Author

the url that is default in the nextcloud app is https://www.draw.io, in the web browser it will redirect to https://app.diagrams.net/

after this I put this in as the server and it is working! Thanks, simple fix today!!

@felix-two-tone
Copy link
Author

Idk if this should be closed yet, leaving open for now.

@MelpodPixel
Copy link

Thank you for that hints. I could follow your recommendation and changed the file appconfig.php.
But in addition, I received the comment, that https://app.diagrams.net/ should be avoided.
I changed to https://embed.diagrams.net/ and now draw.io in Nextcloud is working fine again.

@mfbatra
Copy link

mfbatra commented Jul 21, 2020

Hi @yagikaroo , I am facing the same issue. Can you please guide how i can make the changes to make it work again?

@felix-two-tone
Copy link
Author

@MelpodPixel Yes after a while i noticed that too! I guess I need some glasses and to slow down and read the UI.

@mfbatra All you need to do is go to Settings in NextCloud, then Additional Settings on the left hand menu, then under the Draw.io section change the "Draw.io URL" box to be https://embed.diagrams.net/

@Bergum
Copy link

Bergum commented Jul 22, 2020

I have this same problem on Nextcloud 18.0.7

Refused to frame 'https://app.diagrams.net/' because it violates the following Content Security Policy directive: "frame-src https://www.draw.io blob:".

Worked yesterday, not today.

@davidjgraph
Copy link

We've switched the redirection off for now. Once your browser stops trying to follow the redirect, it'll go back to how it was.

pawelrojek added a commit that referenced this issue Jul 22, 2020
@Bergum
Copy link

Bergum commented Jul 22, 2020

That solved my problem.
Vorks great again.
Thank you.

@davidjgraph
Copy link

To tidy up, we would be looking to set the redirect back at some point, but I suspect we'll need to wait 1-2 years for enough people to move to the next version that sets the URL to the new value.

@pawelrojek
Copy link
Owner

The new version (0.9.7), which was released today (~12 hours ago), will automatically replace http(s)://(www.)draw.io with https://embed.diagrams.net . That should help.

@Bergum
Copy link

Bergum commented Jul 23, 2020

The new version worked for me.

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

No branches or pull requests

6 participants