Get an asset URL usable outside AEM | Community
Skip to main content
Level 2
Oct 5, 2018 8:49 AM UTC
Solved

Get an asset URL usable outside AEM

Hello,

I'm working actually with AEM, and I was wondered if it is possible to display an image/asset with its URL outside AEM using and img src.

For example, I have my website in AEM with all the assets, and I use actually the assets API <img src="/content/dam/..../assets/myAsset.png"/> to display in my AEM website my images.
But sometime, we have to develop prototype of what updates will come in our AEM site, so we sometime do only a local website outside AEM, and I would like to access images in AEM without to be authenticated, so I can use <img src="http://<server_addr>:<server_port>/.../.../../assets/myAsset.png"/>.

Is it possible ? I tried several URL which display my asset, but only if I'm authenticated, and I would like them to be available for render from anyone who have the URL.

Waiting for any answer that could help..

good day to everyone !

Hadrien

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
edubey
edubeyAccepted solution
Level 10
Oct 8, 2018 5:27 AM UTC

You can update permissions for your image so that it can read by anonymous user which I am assuming you are using to access images from another site.

3 replies

edubey
edubeyAccepted solution
Level 10
Oct 8, 2018 5:27 AM UTC

You can update permissions for your image so that it can read by anonymous user which I am assuming you are using to access images from another site.

Translate
VeenaVikraman
New Participant
Oct 6, 2018 8:03 PM UTC

Try using your Publish Contents from your publish server. In Publish all the content including DAM are available to anonymous users.

Translate
arunpatidar
New Participant
Oct 5, 2018 8:59 AM UTC

Hi,

If you are hosting images on Author then it requirs authentication.

Please use publisher image reference to achieve above without authentication.

Translate
Arun Patidar