Domain locking is a security feature that isolates and protects widgets from third-party sources that might try to cause harm to other widgets, the browser, or your application. Locked domains are essential for products that allow users to add or render widgets from third-party sources.