Accessing Content Fragment using Dispatcher URL

Avatar

Avatar

visa679

Avatar

visa679

visa679

07-04-2021

We are building content fragments and exposing to Mobile App.

 

Able to get the CF json output when we use direct publish URL  https://publishURL/api/assets/abc-fragment.json

But when we use dispatcher URL(setup for our website) https://sitedomain/api/assets/abc-fragment.json we are getting page not found.

 

We do not want to use direct publish to expose Content fragments to Mobile App.

 

So do we have to configure any other settings or dispatcher rules to expose content fragment using a dispatcher vhost domain? 

 

Appreciate inputs.

 

 

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

asutosh_jena

Avatar

asutosh_jena

asutosh_jena

07-04-2021

Hi @visa679 

/api needs to be allowed in the v-host and .any file for your website. Currently it will be blocked by dispatcher rule which is why you are getting a 404 response.

The same you can identify by checking the dispatcher.log as well.

 

Please apply the below entry in your filter section and it will be resolved.

/0002 { /type "allow" /url "/api/*"}

 

Links for reference:

https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/assets-api-content-fr...

https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/dispatcher-c...

 

Thanks! 

Answers (0)