Request header does not include HTTP_X_CSRF_TOKEN when using AWS JS SDK : <p>I have a Rails application where I can post answers to questions via ajax, it works fine, however, I have added the <code>aws-js-sdk</code> script to be able to upload images in my answer from the browser, the image will be uploaded to s3 which sends back the url of the newly uploaded image in a callback, then I save the answer.</p>

<p>I included the library like this : </p>

<pre><code> &lt;%= javascript_include_tag "//sdk.amazonaws.com/js/aws-sdk-2.1.12.min.js" %&gt;
</code></pre>

<p><strong>Expected behaviour</strong> : when I submit an answer with an image, the request header should include <code>HTTP_X_CSRF_TOKEN</code> to verify the form is submitted from within my website. </p>

<p><strong>Problem</strong> : request header does not include <code>HTTP_X_CSRF_TOKEN</code>, which is leading to the error <code>ActionController::InvalidAuthenticityToken</code></p>
