I have an app part on a page on a publishing site. In that app, the JSOM calls work well when the user is authenticated. In anonymous mode, it will work only after a reload of the page containing the app part. During the first loading, I will get this error:
Failed to load resource: the server responded with a status of 403 (FORBIDDEN) http://app-4e3210d8daa297.abc.com/MyList/_vti_bin/client.svc/ProcessQuery
The error handlers for the JSOM calls return an "undefined" error message.
But if I reload the page, or the app-part itself (with a javascript code), then it works.
Why the JSOM calls are forbidden only for the first loading of the page? How do I solve this?