Skip to content

Fix Chromium bug for missing cross-origin requests #141

@tridoan

Description

@tridoan

Hi there,
I've discovered an issue when testing my environment, which uses AWS S3 for storage. I found that images were being requested twice in the console, and the results were that the images would not load on the front-end.

After some digging, i came across this thread, which explains the issue quite clearly.
https://serverfault.com/questions/856904/chrome-s3-cloudfront-no-access-control-allow-origin-header-on-initial-xhr-req/856948#856948

In the Accepted Answer, i was able to implement the Workaround #1, using Cloudfront and assigning a Custom Origin Headers value. This works, but i think this solution would be restrictive to some folks.

I recommend implementing the Alternative Hackaround #2 in the application itself.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions