Image Field Preview: Cors required for edit but not detail #5301
Answered
by
crynobone
stuartcusackie
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
crynobone
Feb 8, 2023
Replies: 1 comment 1 reply
-
|
Hi there, The detail and edit page doesn't use the same Vue component code to preview the image which introduces the differences here. In order to support previewing stored images and previewing selected images from the local disk we are using I believe setting the correct CORS for cloud storage is the way to go here. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
stuartcusackie
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment





Hi there,
The detail and edit page doesn't use the same Vue component code to preview the image which introduces the differences here. In order to support previewing stored images and previewing selected images from the local disk we are using
URL.createObjectURL()which could be the cause of requiringorigin.I believe setting the correct CORS for cloud storage is the way to go here.