Cross-Origin Resource Sharing

Problem

Error: Could not get access token. Are you logged in into SharePoint / is the URL correct?

Solution

  1. check if the requested URL starts with https and not with http

  2. change requested URL http to https