In Chromecast Receive App Get Device Name

I’m developing in javascript a google cast receiver app, CAF version.

Can I get the chromecast’s name in the receiver app?

I visited https://developers.google.com/cast/docs/reference but I could not find any way.

I tryed to used in the receiver app url’s like http://localhost:8008/ssdp/device-desc.xml, http://localhost:8008/setup/eureka_info?options=detail, https://localhost:8443/setup/eureka_info but this generate a CORS and mixed content errors.

Lot of thanks