Search code examples
javascriptnode.jsmongodbxmlhttprequestparse-server

Parse-server return 403 on XMLHttpRequest request


I just installed parse-server for the first time and working with it. ( I'm not a stranger to nodejs though ) I managed to work with parse-server locally and I can use classes and save data in remote MongoDB without a problem.

But when I upload the codes on the server ( via Dokku ) the XMLHttpRequest returns 403 error.

I searched and tried many things but couldn't be able to solve this.

Appreciate some help.


Solution

  • Seems like you haven't configured your ACL properly or not using masterKey. parse-server has build-in authentication and ACL. you can override the ACL with 'masterKey'.