Manish Patiyal Manish Patiyal - 4 months ago 216
Android Question

Firebase Service Account Credentials Json Read permission denied

I downloaded my service account credential json file from Firebase console placed it earlier in the main directory of GAE endpoint project when I run my backed locally it gives Security exception. access denied ("" "\src\main\secret.json" "read")

I tried placing the .json file under the src directory also but no help.


Finally, I found the solution, Its written under the APIs and references section of Google App Engine in this link, that we need to add such files in the appengine-web.xml file under the <resource-files> tag, using <include path=""/> property. After doing so its works for me. I placed the .json file containing project credentials in the WEB-INF directory and then entered its relative path in <resource-files> tag.