my following question makes use of: Java, GWT, jQuery, App Engine (GAE).
There's a lot of questions regarding the "Access-Control-Allow-Origin"-header but nothing seems to be what I'm after.
I'm trying to upload a file to Google Cloud Storage using POST Object. This works fine if I'm simply using a html-form to actually make the upload. But as soon as I'm trying to use the XMLHttpRequest to make the exact same request, I get the error "No 'Access-Control-Allow-Origin' header is present on the requested resource". I have followed the setup CORS for a bucket-guide. My CORS xml-file looks as follows:
<?xml version="1.0" encoding="UTF-8"?>
<CorsConfig>
<Cors>
<Origins>
<Origin>*</Origin>
</Origins>
<Methods>
<Method>GET</Method>
<Method>POST</Method>
<Method>HEAD</Method>
<Method>DELETE</Method>
<Method>OPTIONS</Method>
</Methods>
<ResponseHeaders>
<ResponseHeader>x-goog-meta-foo1</ResponseHeader>
</ResponseHeaders>
<MaxAgeSec>1800</MaxAgeSec>
</Cors>
</CorsConfig>
So why am I using the XMLHttpRequest? It's because I want to be able to have upload-progression on my file uploads to the Google Cloud Storage (GCS). I'm not sure if I'm making some mistake somewhere or if it's even possible to have upload-progress when uploading to the GCS. But as far as I understand there should be no limitation on this, since the upload-progression isn't based on communication with the GCS (other then upload speed).
I've forcefully cleaned my cache, but that didn't help! :(
Any suggestions?
Thank you!