Expand my Community achievements bar.

SOLVED

Headers and Helix Configs in EDS Site created with Edge Delivery Services Template (universal editor , xwalk project)

Avatar

Level 2

I have created an EDS site using the "AEM Site with Edge Delivery Services Template 0.0.16" and set up configurations and headers within it. The paths JSON file in the repository has the necessary mappings. I can access the Helix config via main--**.aem.page/config. json, but any updates made and republished do not show up in the config JSON. Additionally, when attempting to load headers JSON via main--**.aem.page/headers. json, I receive a 404 error.

 

josepha18283197_0-1731483801472.png

josepha18283197_1-1731483824523.png

@arunpatidar 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @josephambrose 
I don't think so you should allowed below paths accessible over browser, those are config for the System.

Example if you are going to expose config json, you would endup exposing sensitive data:

https://www.aem.live/docs/configuration 

 

  • Configuration: /.helix/config.json
  • Headers: /.helix/headers.json


Arun Patidar

View solution in original post

5 Replies

Avatar

Community Advisor

Hi @josephambrose 

header config file is use to apply custom HTTP response headers to resources, for example to allow CORS.

You can see those headers in the page request.

 

Please check below for more details

https://www.aem.live/docs/custom-headers 



Arun Patidar

Avatar

Level 2

Hi @arunpatidar 

 

 Yes. But as per the documentation https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/edge-delivery/wy... , metadata, config, redirects all can be accessible like ....aem.page/metadata.json, ...aem.page/redirects.json. Because we are doing the path mapping in paths.json.  Likewise, is headers not accessible using this url (....aem.page/headers.json)? 

Avatar

Correct answer by
Community Advisor

Hi @josephambrose 
I don't think so you should allowed below paths accessible over browser, those are config for the System.

Example if you are going to expose config json, you would endup exposing sensitive data:

https://www.aem.live/docs/configuration 

 

  • Configuration: /.helix/config.json
  • Headers: /.helix/headers.json


Arun Patidar

Avatar

Administrator

@josephambrose Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni

Avatar

Level 2

Hi @kautuk_sahni @arunpatidar Sorry for late reply. Yes this is the correct answer. We are unable to access configurations and headers directly. I attempted to set cache-control headers for certain pages in my project, but they were not applied. Adobe has confirmed that, due to the product's design and implementation, setting cache-control headers is not supported.