Skip to content

CreateOptimizeImage should support FQDN cross-origin sources #299

@auniverseaway

Description

@auniverseaway

Expected Behaviour

If I pass a fully qualified cross-origin domain into createOptimizedImage it should not remove the origin and assume the image is local to the project.

Actual Behaviour

It only uses pathname to create the optimized image.

Reproduce Scenario (including but not limited to)

I injected a cross-origin image in a card block and card block calls createOptmizeImage.

Steps to Reproduce

Build a synthetic card block with cross-origin / FQDN images and watch the origin get stripped out.

Platform and Version

All

Metadata

Metadata

Assignees

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