• Resolved larsactionhero

    (@larsactionhero)


    Hi there,

    firstof all, i really like the plugin and its functionality.

    But I currently encountered an error in console with is caused by crypto.randomUUID().
    For dev purposes, i run wp locally.
    Uncaught TypeError: crypto.randomUUID is not a function

    …is caused by this plugin-generated inline code:
    document.addEventListener("DOMContentLoaded", function() {
    if ( ! document.cookie.includes("wpcf7_guest_user_id")) { document.cookie = "wpcf7_guest_user_id=" + crypto.randomUUID() + "; path=/; max-age=" + (12 * 3600) + "; samesite=Lax"; } });

    As crypto.randomUUID() is only available in https context (and a local instal w/ like MAMP isn’t using https usually), this error appears.

    Any ideas about that? MAMP Pro or selfsigned certificates unfortunaltey is no option in my current environment.

    Thanks for any advice.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.