-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
crypto.randomUUID is not a function #14312
Comments
Debugging the |
Based on this doc you can check what browser version you need https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID Which one is that? Works locally for me (Edge). We might need a polyfill if not all modern browsers support it. |
/cc @dministro |
Edge - 116.0.1938.81 x64 |
It seems that only container images hosted on Docker Hub have this issue. |
That should not be related to this though, it doesn't make sense. Would be interesting to understand how. Someone else should try to repro it, should be easy with your repro steps. |
I'm not sure but this can be the reason from the crypto API documentation: When you run the app from a docker container, the app is listening on http(80) and not https. Line 12 in 5c7854c
|
That seems very possible, good catch! |
I verified it and this is it, tried in an F12 JS console for both https://glowingoldfunspell.neverssl.com/online/ and http://glowingoldfunspell.neverssl.com/online/ and got this: |
@dministro @sebastienros |
Do we need a workaround(polyfill) for this? |
I think we should wrap this, we didn't say OC would not work without https. |
Describe the bug
When I access the media library and upload a file, nothing happens and I get the error
Uncaught TypeError: crypto.randomUUID is not a function
in the console.orchardproject/orchardcore-cms-linux:1.7.0
To Reproduce
Steps to reproduce the behavior:
Content/Media Library
Expected behavior
Can upload media files.
Screenshots
The text was updated successfully, but these errors were encountered: