Sharepoint and OneDrive public links (anyone can view) are not allowed to be iframed in a third-party app by design with XFRAME_OPTIONS = Same origin policy.
I am wondering if there is a way to white-list the domain by customer so that customer's OneDrive files can be shown in iframe in that domain.
Example : customer.saas_vendor.com logs in employees in that customer tenant via SSO (Azure AD as IdP).
Now, customer wants to pick OneDrive files and display in iframe in saas_vendor app.
CORS does not allow it. But, is there "OneDrive for saas_vendor" app (similar to "OneDrive for Slack") can be created where OneDrive files can be displayed in an iframe in customer.saas_vendor.com? OneDrive for Slack only allows the preview of the file, clicking on it opens in new tab.
Hoping to get a simple answer :-)