Skip to content

S3 Wrong URL formed which says CORS issue #108

@aashishpsaini

Description

@aashishpsaini

In the recent amazon updates, there are a couple of changes in the AWS S3 API which is failing the S3 image upload in the editor.
When we upload an image it throws an error saying Parsing failed with status as CORS error.
As per the docs, the correct URL format is:
https://<bucket-name>.s3.<region>.amazonaws.com

And the current URL formed is
https://<region>.amazonaws.com/<bucket-name>

I had a look at the minified JS which computes this as:
A.opts.imageUploadToS3 && (s = A.opts.imageUploadToS3.uploadURL ? A.opts.imageUploadToS3.uploadURL : "https://".concat(A.opts.imageUploadToS3.region, ".amazonaws.com/").concat(A.opts.imageUploadToS3.bucket)),

I believe this is a simple change and should be looked on a priority as things are breaking currently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions