# Cross Domain Request

**URL:** https://forums.plex.tv/t/cross-domain-request/13628
**Category:** Dev/API Corner
**Tags:** other-dev
**Created:** [December 28, 2011, 12:30pm UTC](https://forums.plex.tv/t/cross-domain-request/13628 "2011-12-28T12:30:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![markhoney](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@markhoney](https://forums.plex.tv/u/markhoney)
#### Post date: [December 28, 2011, 12:30pm UTC](https://forums.plex.tv/t/cross-domain-request/13628/1 "2011-12-28T12:30:38Z")

</div>

Hi, I’m currently looking into writing a Javascript-based client that can connect to Plex - with the hope that it can be used both within browsers and on devices such as Samsung TVs.  
  
  
  
I’ve hit an immediate snag in the browsers I’ve tried (Chrome, Firefox) where unless I turn off the cross site security measures I can’t make an HTTP request from Javascript to the Plex server. It appears that having the Access-Control-Allow-Origin header sent by Plex’s web server (preferably with a wildcard for allowing all domains!) would do the trick, but I have no idea where I’d be able to set this up within PMS.  
  
  
  
More information on the header can be read at:  
  
  
  
[https://developer.mozilla.org/En/HTTP\_Access\_Control](https://developer.mozilla.org/En/HTTP_Access_Control)  
  
  
  
Does anyone know if there’s a way I can get Plex Server to send this header? Is there another way around this problem?

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [December 20, 2019, 9:33pm UTC](https://forums.plex.tv/t/cross-domain-request/13628/2 "2019-12-20T21:33:12Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
