Experience - How to get custom property value from external property file
Summary
How to get custom property value from external property file in custom componentContent
I have created a custom component for creating new search site. And this component code (render.html) internally calling the content and experience cloud APIs. For APIs integration, I am using basic authentication token for authenticating API request.
But I want to get that basic authentication token code value from external property file instead of hard code that value in render.html component file. Below is the sample code snippet.
var token = "Y2*******UNB"; // hardcoded basic auth token value
$.ajax({
url: <cec - rest api url>,
Tagged:
1