I've made some progress. When deploying the app, it generates a Web App URL which I was using the redirect. I discovered it also generates a Library URL. I switched to using the Library URL and have got passed the error :) Thanks for looking.