IOT-2258: Allow secure and nonsecure endpoints with OCCreateResource.