To use a custom origin you must first have us configure the origin for you. But we have upgraded our network infrastructure that makes the need for custom origins unnecessary. Not setting an origin explicitly in your client apps will default to use pubsub.pubnub.com.