# Embedding player on localhost

**URL:** <https://discuss.dev.twitch.com/t/embedding-player-on-localhost/25991>\
**Category:** API\
**Created:** [May 29, 2020, 12:01pm UTC](https://discuss.dev.twitch.com/t/embedding-player-on-localhost/25991 "2020-05-29T12:01:00Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [June 12, 2020, 10:16am UTC](https://discuss.dev.twitch.com/t/embedding-player-on-localhost/25991/3 "2020-06-12T10:16:52Z")

</div>

> [@revo91](#):
>
> Still not working. I’m using create-react-app if it matters. Is it possible to run embed on localhost now?

Yes but needs to be on port 80 or 443

> [@Twitch Embedded Player Migration - Timeline Update](https://discuss.dev.twitch.com/t/twitch-embedded-player-migration-timeline-update/25588/29):
>
> This scenario is expected. Since a port part cannot be supplied as part of the parent value, we assume port 80 (HTTP) for localhost and 127.0.0.1/8 parent values and port 443 (HTTPS) for all other domains. As a non-React developer, I want to confirm I got this correct. Is port 3000 the default port for all React apps, or does the port differ for HTTP and HTTPS? Once I know that, I’ll pass this information onto the engineering team. At this time though, we only support the 80/443 ports as menti…

> [@jimakos](#):
>
> my electorn & android app broken  
> parent : localhost , does not working

For electron thy this fix

> you can intercept the request using `session.defaultSession.webRequest.onHeadersReceived` in your `app.whenReady()` and remove the frame-ancestors from the headers (in the context of how to embed now in Electron)  
> you still need to set a parent to avoid getting the warning message, but it doesn’t really matter what you set it to at that point.

Android apps the discussion is still on going in the main threads

As you can see on

> [@How will Twitch Embed updates affect mobile app embeds?](https://discuss.dev.twitch.com/t/how-will-twitch-embed-updates-affect-mobile-app-embeds/26008):
>
> The updates I’m referencing: In the recent updates regarding embeds, what does this mean for mobile app embeds on iOS or Android? An iOS app, for example, has no https url/domain to provide in the ‘parent’ parameter. From the update: " With this new configuration, Twitch embeds can only be embedded on https sites . Non-https sites should plan accordingly if they intend on continued use of any Twitch embed experiences that are currently in operation on their site" Does this mean that mobi…

Where you have already posted.

Closing this thread to maintain less active threads on the same issue

---

_[View the full topic](https://discuss.dev.twitch.com/t/embedding-player-on-localhost/25991)._
