Add support for https origin