There are so many posts related to printing secured services and I tried to follow the suggestions in those posts but no matter how hard I tried, I was not able to print my secured service.
My scenario is, I have developed an application which is deployed in our server. Proxy has been set up, which is working fine in displaying secured services. I then created a custom print service by embedding user credential to it and saved it in a separate folder (not in default utilities). Both the folder and custom print service are not secured. Like other services, I added the custom print service in the proxy.config file. I also tried without adding the print service url and password but got the same error message as below.
username=" "
password=" "
matchAll="true" />
In the config.json file of my app, I added the rule as below. I was not able to load my app without adding rules for other secured services.

When I print, I get the following error message.

Can anybody please point out what am I missing here. Also, please suggest creating a separate proxy folder is the preferred option.
Thanks,
Sunita