Over a million developers have joined DZone.

Solution of Problem “403 (Forbidden) With SP.RequestExecutor.js”

How to solve an error in Office365 and SharePoint.

· Web Dev Zone

Start coding today to experience the powerful engine that drives data application’s development, brought to you in partnership with Qlik.

Every day I learn something new about SharePoint.

Today, when I was deploying some apps to Office 365, I came across an interesting situation and wanted to dig in.

I was developing an app that uses a list to retrieve specific items and it was working perfectly in my On-Premise environment.

When I deployed the same app to Office 365 Developer Suite, I received this error in my Chrome’s Developer Tools.. something similar to "403 (Forbidden)" linking "SP.RequestExecutor.js" file.

Well, that ruined me for a second — I didn't expect it at all.

Then after some research I found that: "Tenant" needs to be added as "Read" permission in "ApplicationManifest.xml" configuration.

Capture16

And, the other problem for me was using the Chrome Browser.When you deploy an app to Office 365, you should always use Internet Explorer as your default browser because by default it lets you select the "Trust-Don’t Trust" option which is needed to run the app which Chrome doesn’t provide.

That's all. If you have come across the same situation, now you know the trick.

Create data driven applications in Qlik’s free and easy to use coding environment, brought to you in partnership with Qlik.

Topics:
sharepoint 2013 ,office 365

Published at DZone with permission of IBRAHIM ERSOY. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}