
Customizing OneDrive sites is not supported.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi there,
I have two site collection: one is Personal Site Host another is Team Site. I customize a OneDrive for every personal site for control each site status. there are some code I added in OneDrive.aspx. you could refer to the attachment. If we access the personal site, everything works nicely. On the contrary, If we access the Team Site, the OneDrive.aspx also will be involved and the custom JS will be performed, then I got the following error:
Here is the OneDrive.aspx I amended.
The error code is (Red line):
Does anyone have any idea on it? thanks
Customizing OneDrive sites is not supported.
looks like at least ports of your Teams site and My Site host are different. In order to avoid CORS problem protocol, host and port should be the same: CORS error on same domain.