enable https cdn url

1. .parse is deprecated, using .parseWithConfig
2. passing in https bool