Remove options from parameter from restrictOrigin