Configure JavaScript run method
Learn how to configure the JavaScript run method using main arguments like cdnApi, jwt, and customData for enhanced decision-making and authentication.
You can use the following main arguments with the JavaScript run method:
cdnApi [String]
This is the Zephr CDN API base URL. For further information, see CDN API Endpoint belowjwt [String]
This is the JSON Web Token (JWT) used for authenticationcustomData [Object]
This allows you to pass additional string key/value pairs for use in decisions. These define the parameter that you can use when building custom decisions For example, you could configure the following types of customData points:pageType
. For example, this could define a page as anarticle
,slideshow
, orhomepage
contentLabel
. For example, this could define the type of information on the page asnews
,opinion
, orcolumn
pageIsSponsored
. For example, this could indicate whether the content is sponsored usingtrue
orfalse
values
Note: It can take a while for the page to load to your origin CMS, depending on the number of third-party scripts. If this is causing issues, you can configure cache rules to minimize the delay. For further information on configuring cache rules, see the Configure Cache Rules topic.