Hello,
We found that in highly secured environments, webqueries can be blocked if they are GET type and have the Content-Type header. This seems to be unusual and some security softwares don't like them.
So, please remove that headers at internal queries done by the development environment, like GET https://server/portal/sharing/rest/community/self?f=json&token=
Thank you