• Resolved A. Albrecht

    (@alexander-albrecht)


    I got a page under construction where my contact form will always redirect me after sending it, instead of the AJAX submitting. Thats why my DOM events won’t fire, and the appropriate classes are not added to the error/success messages.

    All scripts are enqueued correct.

    Version of CF7 is 5.4.1 on all my client pages.

    Strange thing, on another clients page it is not broken, while others show the same effect. The code base is all the same:

    The site with the bug: http://luegeten.ch.bezier.ch-meta.net/testseite-alex/ (no cache running at the moment)

    Other client page that is working: https://www.softec.ch/kontakt/

    Even another client page where it is not working: https://schwyz-next.ch/kontakt/

    I am stuck now. Can’t see any difference in my code. Everything is nicely enqueued.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Erik

    (@codekraft)

    Content Security Policy of your site blocks some resources
    Some resources are blocked because their origin is not listed in your site's Content Security Policy (CSP). Your site's CSP is allowlist-based, so resources must be listed in the allowlist in order to be accessed.
    A site's Content Security Policy is set either as via an HTTP header (recommended), or via a meta HTML tag.
    To fix this issue do one of the following:
    (Recommended) If you're using an allowlist for 'script-src', consider switching from an allowlist CSP to a strict CSP, because strict CSPs are more robust against XSS . See how to set a strict CSP .

    https://stats.g.doubleclick.net/j… STATUS: blocked


    and about cf7:
    index.5.4.1.js:1 Uncaught TypeError: Cannot set property ‘innerText’ of null
    (.screen-reader-response [role=”status”])

    near: <!– Chimpmail extension by Renzo Johnson –>

    Thread Starter A. Albrecht

    (@alexander-albrecht)

    Hey Erik,

    thanks for your response. Thats right the Schwyz Next page has the chimpmail Plugin running.

    But the page I am currently working on is “Luegeten” http://luegeten.ch.bezier.ch-meta.net/testseite-alex/

    There is no CSP active and no chimpmail plugin.

    Thats quite strange to me.

    Alex

    Erik

    (@codekraft)

    Thread Starter A. Albrecht

    (@alexander-albrecht)

    Thanks Erik. We’ve solved the issue, or mostly he did. I had some regex running that alters the output of text fields. In my case it changed the .screen-reader-response that is used by CF7, which caused my error.

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

The topic ‘Redirect after submit’ is closed to new replies.