Add option to override allowed origin