Share via

How to fix CORS issue by https://view.officeapps.live.com/op/embed.aspx

sadi subhan 0 Reputation points
2025-10-10T09:00:08.15+00:00

When i use [ ]https://view.officeapps.live.com/op/embed.aspx?src={src} i can't load the content sometimes because of cors it cdn. error message:

Access to script at 'https://res.public.onecdn.static.microsoft/officeonline/x/s/h7F6F1EB436A35450__layouts/App_Scripts/EwaTS.rt.js' from origin 'https://psg3-excel.officeapps.live.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://psg4-excel.officeapps.live.com' that is not equal to the supplied origin.

This even broke the view of microsoft excel online. How to show the content that doesn't broken?

Microsoft 365 and Office | Excel | For home | Windows
0 comments No comments

1 answer

Sort by: Most helpful
  1. Emmanuel Santana 39,640 Reputation points Independent Advisor
    2025-10-11T09:07:43.7433333+00:00

    Hello. What is the exact src URL you’re using in the embed code? When the embed fails, do you see a blank frame, a console error only, or does Excel Web App partially load?

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.