Skip to content

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

Open
@davay42

Description

@davay42

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions