• Hi there,

    We have an AMP form in basically all our AMP pages but the submission of said form is not working because we’re getting a CORS error. The endpoint in our domain (https://www.caminofinancial.com/) returns the correct allow headers, but it’s somehow being overwritten and the allow header is gone when you inspect the submit call.
    We tried tweaking that code, changing .htaccess settings and a few CDN tweaks but nothing worked. We mostly suspect it’s the CDN (Cloudflare). The server is a standard Linux AWS server.

    Do you have any tips on what we can do to fix this? We’re running out of ideias for this issue.

    Here’s an example page with the form: https://www.caminofinancial.com/questions-to-ask-before-getting-a-small-business-loan/amp/
    (it’s the “Get Instant Loan Quote” all the way in the bottom)

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please let us know ask how you are embedding the form into the amp? Using any plugin? Do let us know So that we will let you know accordingly.

    Thread Starter Victor Abadio

    (@unaghii)

    I’m extending the plugin and adding the <amp-form> with the ampforwp_post_after_design_elements hook.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please share all the form code with us? So that we will check and let you know.

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

The topic ‘CORS issue’ is closed to new replies.