-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
self.crypto.randomUUID is not a function #28
Comments
Hello,
So the behavior you observe is surprising. Furthermore, a fallback was added in #24 and then refined in #27. These changes are simply not yet published in a stable version. |
Thank you for maintaining this important package. I see that I have added a duplicate issue. For your information, in development, we use a virtual host setup to map various projects to localhost and browsers are treating these virtual hosts as insecure when not served over HTTPS. |
I've release 7.2.0 with these changes ;) |
Amazing! Thank you. |
Describe the bug
The package throws "TypeError: self.crypto.randomUUID is not a function" in unsecure (e.g. http://localhost) environments. This prevents the package form working in development
To Reproduce
Simply instantiating a dropzone:
const myDropzone = new Dropzone(target):
Browser / OS:
Suggested solution
Provide a polyfill for self.crypto.randomUUID for insecure environments (and older browsers). e.g.
The text was updated successfully, but these errors were encountered: