static bool IsAllowed( System.Uri uri )

Summary

Check if the given Uri matches the following requirements: 1. Scheme is https/http or wss/ws 2. If it's localhost, only allow ports 80/443/8080/8443 3. Not an ip address
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.