PennController for IBEX › Forums › Support › .zip file problems › Reply To: .zip file problems
June 5, 2019 at 12:25 pm
#3700
Jeremy
Keymaster
Hi Grusha,
I am not familiar with amazonaws, but it looks like you’re hosting your ZIP file on a cloud storage service rather than on an apache server. In that case, .htaccess files will be of no help.
It seems that you can still configure your amazonaws space to accept CORS requests:
– https://aws.amazon.com/blogs/aws/amazon-s3-cross-origin-resource-sharing/
– https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html#how-do-i-enable-cors
You probably want to add these rules to your bucket:
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>https://expt.pcibex.net</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedHeader>*</AllowedHeader>
<ExposeHeader>Accept-Ranges</ExposeHeader>
<ExposeHeader>Content-Range</ExposeHeader>
<ExposeHeader>Content-Type</ExposeHeader>
<ExposeHeader>Content-Encoding</ExposeHeader>
<ExposeHeader>Content-Length</ExposeHeader>
</CORSRule>
</CORSConfiguration>
Let me know if this solution worked
Jeremy