Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Experience - How to get custom property value from external property file

edited Aug 23, 2018 7:09AM in Content Management 1 comment

Summary

How to get custom property value from external property file in custom component

Content

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:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!