Title: Plugin doesn&#8217;t work with cloudfront securely rules
Last modified: September 22, 2016

---

# Plugin doesn’t work with cloudfront securely rules

 *  [heliocampos](https://wordpress.org/support/users/heliocampos/)
 * (@heliocampos)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-cloudfront-securely-rules/)
 * Hi support,
 *  – We have the following scenario using Amazon AWS infrastructure:
 *     ```
       ----------    -----------    --------------------    ------------------    ---------------
       | RDS/DB | <- | EC2/WEB | <- | ELB/LoadBalancer | <- | Cloudfront/CDN | <- | Route53/DNS |
       ----------    -----------    --------------------    ------------------    ---------------
       ```
   
 *  – Cloudfront has the a default rule that is as follow:
    Any request made by 
   the client that does not fit the previous rules will be sent to the LoadBalancer
   but only if it is a GET or HEAD method. This is for security to ensure no one
   can make POST requests on any path witch it not previously determined. This is
   an issue for us to use your plugin because the form in the plugin sends the POST
   request to, for example, “blog.example.com/#sendgrid_mc_email_subscribe”. For
   cloudfront the “#sendgrid_mc_email_subscribe” action is not a path so it uses
   the “blog.example.com/” as rule. This, in turn, blocks the request made because
   it’s, very correctly, a POST request. – I want to ask if its possible to alter
   the plugin to send the request with some path so the request change to “blog.
   example.com/some_path/#sendgrid_mc_email_subscribe”. This would fix the problem
   completely and we would be allowed to create an specific rule just for it.
 * Best regards,
    -  This topic was modified 9 years, 8 months ago by [heliocampos](https://wordpress.org/support/users/heliocampos/).
    -  This topic was modified 9 years, 8 months ago by [heliocampos](https://wordpress.org/support/users/heliocampos/).
    -  This topic was modified 9 years, 8 months ago by [heliocampos](https://wordpress.org/support/users/heliocampos/).

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

 *  [neoswf](https://wordpress.org/support/users/neoswf/)
 * (@neoswf)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-cloudfront-securely-rules/#post-8210340)
 * Plugin needs to post to /some_path/ & return back to homepage together with calling#
   hash, to be able to jump to the anchor in the page in order to display success
   msg.
 * Problem with this anchor is that its non customizable. I got a page with 2 registration
   forms and both of the will call the same #anchor.
 *  Anonymous User 12640152
 * (@anonymized-12640152)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-cloudfront-securely-rules/#post-8212956)
 * Hi heliocampos,
 * We will investigate this and we’ll get back to you with a possible solution, 
   if any.
 * Thank you,
    SendGrid
 *  [neoswf](https://wordpress.org/support/users/neoswf/)
 * (@neoswf)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-cloudfront-securely-rules/#post-8215235)
 * Hi @team-rs. Thank you for returning to us.
    I just got an idea. Is it possible
   to use contact-form-7 to send emails using sendgrid platform?
 *  Anonymous User 12640152
 * (@anonymized-12640152)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-cloudfront-securely-rules/#post-8220319)
 * Hi [@neoswf](https://wordpress.org/support/users/neoswf/),
 * Please open a new thread for this issue. You can send email via contact-form-
   7 using SendGrid but you must have both plugins installed, activated and correctly
   configured.
 * Thank you,
    SendGrid
 *  Thread Starter [heliocampos](https://wordpress.org/support/users/heliocampos/)
 * (@heliocampos)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-cloudfront-securely-rules/#post-8256111)
 * Hi @team-rs,
 *  – Did you have time to think about this topic os using the sendgrid plugin with
   cloudfront? Do you need more information, tests, and/or images that could help?
 * Best regards,
 *  Thread Starter [heliocampos](https://wordpress.org/support/users/heliocampos/)
 * (@heliocampos)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-cloudfront-securely-rules/#post-8259151)
 * Hi @team-rs,
 *  – Did you have time to think about use the sendgrid plugin with cloudfront securely?
   Do you need more information, tests, and/or images that could help?
 * Best regards,
 *  [neoswf](https://wordpress.org/support/users/neoswf/)
 * (@neoswf)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-cloudfront-securely-rules/#post-8293425)
 * Hi @team-rs, any idea when this topic will be resolved? We really need the plugin
   working on my blog.
 *  Anonymous User 12640152
 * (@anonymized-12640152)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-cloudfront-securely-rules/#post-8299189)
 * Hi,
 * At the moment the POST is made in the current page and we don’t have a solution
   on how to change that at this time.
 * If you are in the page ‘/contact/’ the POST will be made under the same route:‘/
   contact#sendgrid_mc_email_subscribe’
 * We will still investigate to see if WordPress recommends any solutions on this
   exact matter.
 * Thank you,
    SendGrid

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

The topic ‘Plugin doesn’t work with cloudfront securely rules’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sendgrid-email-delivery-simplified_264460.
   svg)
 * [SendGrid](https://wordpress.org/plugins/sendgrid-email-delivery-simplified/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sendgrid-email-delivery-simplified/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sendgrid-email-delivery-simplified/)
 * [Active Topics](https://wordpress.org/support/plugin/sendgrid-email-delivery-simplified/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sendgrid-email-delivery-simplified/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sendgrid-email-delivery-simplified/reviews/)

## Tags

 * [CloudFront](https://wordpress.org/support/topic-tag/cloudfront/)
 * [distribution](https://wordpress.org/support/topic-tag/distribution/)
 * [firewall](https://wordpress.org/support/topic-tag/firewall/)
 * [path](https://wordpress.org/support/topic-tag/path/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [requests](https://wordpress.org/support/topic-tag/requests/)
 * [rules](https://wordpress.org/support/topic-tag/rules/)

 * 8 replies
 * 3 participants
 * Last reply from: Anonymous User 12640152
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-cloudfront-securely-rules/#post-8299189)
 * Status: not resolved