Title: CORS issue
Last modified: May 3, 2021

---

# CORS issue

 *  [Victor Abadio](https://wordpress.org/support/users/unaghii/)
 * (@unaghii)
 * [5 years ago](https://wordpress.org/support/topic/cors-issue-12/)
 * 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/](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/](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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcors-issue-12%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [5 years ago](https://wordpress.org/support/topic/cors-issue-12/#post-14398482)
 * 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](https://wordpress.org/support/users/unaghii/)
 * (@unaghii)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/cors-issue-12/#post-14450728)
 * I’m extending the plugin and adding the <amp-form> with the ampforwp_post_after_design_elements
   hook.
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/cors-issue-12/#post-14462735)
 * 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.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/cors-issue-12/#post-14462735)
 * Status: not resolved