none
Outlook REST APIs calls failed - Missing Access-Control-Allow-Origin header? RRS feed

  • Question

  • Hi Guys,

    I've been facing an issue with failed Outlook REST APIs calls since yesterday 26-Jul. It was working fine before that.

    It seems the APIs are not returning Access-Control-Allow-Origin header which cause preflight request in Chrome failed. API calls are originated from SharePoint Online with the token getting with ADAL.js.

    Error in Chrome's console:

    Failed to load https://outlook.office.com/api/v2.0/me/tasks?&$select=*&$top=1000&Status!=Completed&$filter=Status%20ne%20%27Completed%27&$orderby=DueDateTime/DateTime%20asc: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://tenant.sharepoint.com' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

    Please let me know if you have any ideas on this.


    Thanks & Best Regards,

    Hung

    Friday, July 27, 2018 3:07 AM

All replies

  • Hello Hung,

    This forum(Outlook for Developers) is for discussing development issue related to Outlook Object Model and I think your issue is more related to Office 365 development. So I will move the thread to Office 365 for Developers forum.

    Thanks for understanding,

    Best Regards,

    Terry


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Monday, July 30, 2018 1:18 AM
    Moderator