Title: Crossorigin error
Last modified: August 24, 2016

---

# Crossorigin error

 *  [maijx](https://wordpress.org/support/users/maijx/)
 * (@maijx)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/crossorigin-error/)
 * Hi guys. i have a problem in my wordpress. i’ve moved my **upload** folder to
   a subdomain. every thing is good, except when i add subtitle to a video i get
   this message in the inspect elements console and the subtitle doesn’t load.
 *     ```
       Text track from origin 'http://fa-media.fardacademy.com' has been blocked from loading: Not at same origin as the document, and parent of track element does not have a 'crossorigin' attribute. Origin 'http://fardacademy.com' is therefore not allowed access.
   
       XMLHttpRequest cannot load http://fa-media.fardacademy.com/2015/04/1523621.vtt. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://fardacademy.com' is therefore not allowed access.
       ```
   
 * What should i do? What’s the solution except moving back my upload folder to 
   wp-content?
 * thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/crossorigin-error/#post-6080484)
 * The fix is to configure http:/fa-media.fardacademy.com to allow requests from
   [http://fardacademy.com](http://fardacademy.com).
 * To do so, put this line in .htaccess on [http://fa-media.fardacademy.com](http://fa-media.fardacademy.com)
 *     ```
       Header add Access-Control-Allow-Origin http://fardacademy.com/
       ```
   
 * [http://en.wikipedia.org/wiki/Cross-origin_resource_sharing](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing)
   
   Lots more out there on CORS.
 *  [Mike Wiegand](https://wordpress.org/support/users/mikeg_de/)
 * (@mikeg_de)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/crossorigin-error/#post-6080673)
 * Hi maijx,
 * just found this since I got a similar issue. The error message states to add 
   the crossorigin attribute to the script tag which links to the file … and not
   the request header. Anyway the request header as stated by lorro is required 
   too.
 * Cheers
    Mike

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Crossorigin error’ is closed to new replies.

## Tags

 * [XMLHttpRequest](https://wordpress.org/support/topic-tag/xmlhttprequest/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Mike Wiegand](https://wordpress.org/support/users/mikeg_de/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/crossorigin-error/#post-6080673)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
