title: Cross Domain Post to Sinatra
body: <p>Hi I have a static website hosted on AWS S3 and I would like to be able to send emails from the "Contact Us form on the page". Is it possible to have a Sinatra server running on a different domain, lets say Heroku that would handle the POST and send an email.</p>
  
  <p>I have the email portion from Sinatra working but every time I POST on my local I get</p>
  
  <pre><code>WARN -- : attack prevented by Rack::Protection::HttpOrigin
  </code></pre>
  
  <p>My form is this <code>&lt;form action="http://localhost:4567/contact" method="post"&gt;</code>.</p>
  
  <p>If I understand correctly this should work because I am not using JavaScript, but I am not sure.</p>
  
  <p>Also, is it possible to have my static site auto redirect me to the index page or do I need to do that from Sinatra?</p>
  
  <p>Thank you for your help.</p>