Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Add 'urlPermission' in 'serverconf.xml' data schema

Avatar

Avatar
Validate 1
Level 4
somasundaramhal
Level 4

Likes

73 likes

Total Posts

71 posts

Correct Reply

12 solutions
Top badges earned
Validate 1
Shape 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 1
Level 4
somasundaramhal
Level 4

Likes

73 likes

Total Posts

71 posts

Correct Reply

12 solutions
Top badges earned
Validate 1
Shape 1
Boost 50
Boost 5
Boost 3
View profile
somasundaramhal
Level 4

30-07-2019

Hi,

I want to whitelist a URL in Adobe instance. The reason is, I'm trying to do a API call from the instance and getting the following error.

"The URL 'https://abc.def.com/ghi/' that the script is trying to access is not part of the authorized addresses in urlPermission (serverconf.xml)". This is similar to the one How to perform an API REST call through a Web App ? .

I tried to add the following as given in the above discussion.

<url dnsSuffix="jsonplaceholder.tipicode.com" urlRegEx="https://.*"/>.

The code as follows:

<srcSchema _cs="Server configuration (cus)" created="2019-07-30 10:07:58.334Z" createdBy-id="0"

           desc="" entitySchema="xtk:srcSchema" extendedSchema="nl:serverConf" img=""

           label="Server configuration" labelSingular="" lastModified="2019-07-30 10:18:01.263Z"

           mappingType="sql" md5="121321321321321313213311312" modifiedBy-id="0"

           name="serverConf" namespace="cus" xtkschema="xtk:srcSchema">

  <createdBy _cs="xyz"/>

  <modifiedBy _cs="xyz"/>

  <element desc="List of URLs that the Javascript code can access." label="Authorized URLs"

           name="urlPermission">

    <url dnsSuffix="iid.googleapis.com" urlRegEx="https://.*" />

  </element>

 

</srcSchema>

That didn't work. any help would be much appreciated.

Thanks,

Somasundaram.

View Entire Topic

Avatar

Avatar
Give Back 5
Employee
ananya_kuthiala
Employee

Likes

58 likes

Total Posts

80 posts

Correct Reply

39 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile

Avatar
Give Back 5
Employee
ananya_kuthiala
Employee

Likes

58 likes

Total Posts

80 posts

Correct Reply

39 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile
ananya_kuthiala
Employee

31-07-2019

Hello somasundaramhaldurai

The url needs to be whitelisted in the server config file under <url permissions> node and not in the schema. Could you add that url in the config file. Once done save the file and via command line type nlserver config -reload so that the changes can take effect immediately.

Also please note this task has to be performed as neolane user on the server.

Regards,

Ananya Kuthiala