Auto detect allowed domain