AWS S3 storage using LANSA API (RESOLVED)
Posted: Fri Oct 11, 2019 11:22 am
Hi,
We have configured AWS S3 as per LANSA API docco and can put objects and get objects manually via Powershell.
However we are getting the following error from the xdemo image widget implementation code when running the LANSA Amazon S3 example employee image upload :
request_1.addEventListener("error", function () { return _this.fireOnUploadEnded("ERROR_NETWORK", "A network/CORS error has occurred"); });
Any suggestions?
Web console error talks about missing CORS header values
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://lansapc.s3-ap-southeast-2.amazo ... 6f1bd69721. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
We have configured AWS S3 as per LANSA API docco and can put objects and get objects manually via Powershell.
However we are getting the following error from the xdemo image widget implementation code when running the LANSA Amazon S3 example employee image upload :
request_1.addEventListener("error", function () { return _this.fireOnUploadEnded("ERROR_NETWORK", "A network/CORS error has occurred"); });
Any suggestions?
Web console error talks about missing CORS header values
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://lansapc.s3-ap-southeast-2.amazo ... 6f1bd69721. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).