0

I am a new developer in node.js(v10.15.1). I am trying to create an outlook web Add-in in which I am making an API call to Spring boot(v2.2) application and it is showing this error.

Access to XMLHttpRequest at 'https://xxxxx' from origin 'https://localhost:3000' has been blocked by CORS policy: Response to a preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

  • 1
    I hope this helps [https://stackoverflow.com/questions/49628110/http-fetch-from-within-outlook-add-ins](https://stackoverflow.com/questions/49628110/http-fetch-from-within-outlook-add-ins) – Outlook Add-ins Team - MSFT Mar 04 '19 at 14:27
  • @AshwaniGupta The problem is with localhost origin. Are you trying to connect to your own service? – Niko Mar 06 '19 at 13:24

0 Answers0