window.opener=null;
window.open('','_self');
window.close();
Step 1. Install cors from NeGet Step 2. Enable cors in config using System; using System.Collections.Generic; using System.Linq; using ...
window.opener=null;
window.open('','_self');
window.close();