Skip to content

Cross-Origin-Resource-Policy blocks image embedding #624

@fabidick22

Description

@fabidick22

Describe the bug
CloudFront distribution sends Cross-Origin-Resource-Policy: same-origin header, blocking images from loading on cross-origin websites.

To Reproduce

  1. Deploy DIT solution v8
  2. Load an image from CloudFront domain on a different origin: <img src="https://cloudfront-domain.cloudfront.net/image.jpg">
  3. Browser blocks request with: cross-origin-resource-policy: same-origin

Expected behavior
Images should be loadable cross-origin for CDN use cases.

Please complete the following information about the solution:

  • Version: v8.0.0
  • Region: us-east-1
  • Was the solution modified from the version published on this repository?: No
  • If the answer to the previous question was yes, are the changes available on GitHub?
  • Have you checked your service quotas for the sevices this solution uses? Yes
  • Were there any errors in the CloudWatch Logs? No

Screenshots

Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions