Publish fails with unauthorized http error

Problem

Publish fails and an authorization denied error.

 

Solution

All APIs in the application are protected by API keys or using basic authentication. At the end of the publishing process Server will communicate with Web over an API. In later versions API protection is turned on by default.

See this article for how permissions and API keys work.