Just trust the location like it says here : https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-trust-a-location