Javascript fetch vs Freemarker http.client.request issues
I'm having issues with permissions with a Freemarker http.client.reques that works fine as a Javascript fetch. Javascript (returns result as expected): let myHeaders = new Headers();
...
There is an "Allowed domain names" setting in admin. I think you just need to add your domain name there "apisite.com" in your example. It's found in Community Admin, under System > HTTP Client
Thanks Akenefick Unfortunately that didn't do it. I suspect I may have something wrong in the syntax of the http.client.request code but I'm not sure what it is. Documentation is thin. As usual.