0

We are experiencing inconsistent behaviour on access to COPC files from Web clients. Desktop clients (QGIS and PDAL info) work perfectly from our CEPH-based S3 compatible bucket.

But https://viewer.copc.io/validator/index.html and the viewer report "failed to fetch".

The response is an expected 206 ( not all of our files return a 206).

I am wondering whether settings of the S3 storage may be affecting this.

1

1 Answer 1

1

This has been solved by activating the S3 CORS policy on the S3 bucket:

aws s3api put-bucket-cors --endpoint-url YOURS3URL --bucket BUCKETNAME --cors-configuration '{"CORSRules" : [{"AllowedHeaders":["*"],"AllowedMethods":["GET","HEAD"],"AllowedOrigins":["*"],"ExposeHeaders":["Access-Control-Allow-Origin"]}]}'

I will reword the question too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.