Subscribe on changes!

SFC Playground isn't compatible with SubtleCrypto: it needs https access internally

avatar
Feb 3rd 2023

Vue version

3.2.47

Link to minimal reproduction

https://sfc.vuejs.org/#eNp9UMtOwzAQ/JXFl4DU2G0OCJW0Kjf4AMTFl5Jum1TxQ2snHKL8O+uURwRS5Yt3Z2c0M4N48l72HYq1KENFjY8QMHZ+q21jvKMIAxAeYYQjOQMZn2Yz6DUgvVTOfuNa1DH6sFYKg5GhVv1qea92p87mzFSVY6JFG8NuKVeFfOCzYlkUM0CegxaP2qbHwiGCCSfYJBO32TO2rYM3R+3hJrvTtlQXz+yWh4jGt/uIPAGU9Wo7DBN5HEvF07RtrO8i9LlxB2w3WjCuBUOl+mGLhbjky83esx1nuZwhsfUXwA7XMG3SjoOl+Td6OFap0nOQjk6Kf5I6GxuDkkvJ38l9cGtTzsVMQ/GyR8oJ7QEJ6Zrmn9N/ukl21HYU4yfE4KYQ

Steps to reproduce

Adding modules that use browser cryptography breaks the SFC playground because of forced redirect. If using SubtleCrypto - it's methods are unavailable...

What is expected?

Internal virtual server to be localhost as it doesn't need to be loaded from https location. Or some emulation of https connection so we can explore the browser cryptography in Vue SFC playground.

What is actually happening?

Some incorrect redirect happens if I use Gun js library SEA. If not - just empty SubtleCrypto shows the bug.

System Info

No response

Any additional comments?

No response