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

Can not upload plugin #1535

Closed
2 tasks done
zelo2000 opened this issue Nov 26, 2020 · 6 comments
Closed
2 tasks done

Can not upload plugin #1535

zelo2000 opened this issue Nov 26, 2020 · 6 comments

Comments

@zelo2000
Copy link

zelo2000 commented Nov 26, 2020

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe the bug
Try to upload sample plugin but it is don't uploaded and throw error in to the console.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Extras'
  2. Click on 'Plugin'
  3. Click on 'Add'
  4. Click on 'Custom'
  5. Insert URL
  6. Click on 'Add'
  7. Click on 'Apply'
  8. Click on 'Ok'
  9. Reload the app
  10. See error

Expected behavior
The plugin must be successfully uploaded.

Screenshots
image

  • draw.io version: 13.10.3

Desktop:

  • OS: windows
  • Browser: chrome
  • Version: 86.0.4240.198
@davidjgraph
Copy link
Collaborator

What is the URL?

@zelo2000
Copy link
Author

@davidjgraph
Copy link
Collaborator

Try https://app.diagrams.net/plugins/...

@zelo2000
Copy link
Author

zelo2000 commented Nov 26, 2020

It's work. But how should URL looks like if I want to add custom plugin?
I try use https://62410566428e.ngrok.io/drawio.js

@zelo2000
Copy link
Author

Also I tried to upload plugin from dropbox using this URL https://www.dropbox.com/s/re6yfkh7crttjl1/p1.js?dl=0
And I have same error as in first message.

@davidjgraph
Copy link
Collaborator

Yes, since adding a CSP to the site third-party plugins cannot load, see #958.

We don't currently have an obvious solution to that. The long term suggestion will be to deploy your own version with a plugin, or use the desktop version jgraph/drawio-desktop#139.

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

2 participants