Allow specifying the scheme or not for origin permissions