Get rid of the pubnub warning message and set the default origin to "pubsub.pubnub.com". See also: <https://help.pubnub.com/entries/21403311-How-Do-I-Use-a-Custom-Origin->.