adobe/aem-boilerplate

CreateOptimizeImage should support FQDN cross-origin sources

auniverseaway opened this issue · 0 comments

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