Closed doctorpangloss closed 5 years ago
Your wiki has Extension:MultimediaViewer, which tries to download the thumbnail via JavaScript. This fails due to CORS restrictions (cross-origin requests): browser won't allow JavaScript from domain A to send requests to domain B, unless B allows it.
(here A is your wiki's domain and B is domain of Amazon S3)
Solution is to allow these requests in "CORS configuration" of your S3 bucket with images. See https://docs.aws.amazon.com/AmazonS3/latest/user-guide/add-cors-configuration.html for details.
Something like this will probably work:
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>https://wiki.hiddenswitch.com/</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedHeader>*</AllowedHeader>
<MaxAgeSeconds>3000</MaxAgeSeconds>
</CORSRule>
</CORSConfiguration>
I went ahead and documented that fix.
Possibly related to #11 .
Steps to reproduce:
Uploading works.
Adding the following CORS policy to the bucket fixes the problem: