• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

Cross-origin Request Blocking – FV Player

Foliovision › Forums › FV Player › Bug Reports › Cross-origin Request Blocking – FV Player

  • CXL 6 years, 3 months ago

    I am not able to play Vimeo videos through FV player on our staging environment. Getting Cross-origin Request blocking chrome error. See attached image.

    You should have access to our staging environment: https://conversionxli.warmpress.com

    Cleared Front End Cache; issue persists
    Restarted Browser; issue persists
    Mirrored settings on the production site; issue persists
    Disabled MPEG-DASH; issue perests
    Reenabled MPEG-DASH; issue persists
    Enabled HLS.js; issue persists
    Disabled HLS.js; issue persists
    Enabled Beta; issue persists
    Enabled Release; issue persists

    The end result I want:
    – MPEG-DASH Enabled
    – Beta Version Enabled
    – Video Plays with no issues

    please provide next steps

    chrome_2019-02-19_12-10-08
    chrome_2019-02-19_12-10-08
Viewing 14 replies - 1 through 14 (of 14 total)
  • Martin 6 years ago

    Hello CXL,

    please check if you are using the right license key for your domain. If you need a staging website we recommend that you use a subdomain of your real licensed domain (dev.your-domain.com), that way it keeps working on both.

    However I wonder why you are not getting the right error message on top of the player and you get a generic error message only.

    Thanks,
    Martin

    CXL 6 years ago

    Hello,

    I have confirmed we are using the right license. We have one of our license slots set to the staging domain – warmpress.com

    Thanks,
    Kyle
    CXL

    Martin 6 years ago

    Hello CXL,

    please post the URL where we can see the issue and make sure our ….@foliovision.com user (or a guest) can access it.

    Thanks,
    Martin

    CXL 6 years ago

    Here’s the url: https://conversionxli.warmpress.com/lesson/visual-branding/

    Your guest account is active still and should be able to access this page.

    Martin 6 years ago

    Hello CXL,

    it says:

    You need to purchase CXL Institute subscription to access this content. Sign up here!

    Thanks,
    Martin

    CXL 6 years ago

    My mistake. I have updated permissions.

    Martin 6 years ago

    Hello CXL,

    are all the Vimeo videos failing or just this one? I see you use the Settings -> FV Player Pro -> Hosting -> Vimeo -> “Turbocharge Ajax Vimeo loading” setting. Please try to first just re-save the settings and see if that helps (perhaps it’s failing to create the cache folder at /wp-content/cache/fv-player-vimeo). Then try to disable that option.

    Thanks,
    Martin

    CXL 6 years ago

    All of the videos are failing. We have the Turbocharge Ajax Vimeo loading setting enabled on the production site and it works with no issue.

    Navigated to Settings -> FV Player Pro -> Hosting -> Vimeo; Clicked Save All Changes button in this section; issue persists

    Disabled Tubrocharge Ajax Vimeo loading setting; the issue appears to have been resolved.

    Why does this resolve the issue if it works on our production server?
    What information would you need to help determine this?

    I did notice errors in Query Monitor when interacting on FV Settings: Settings -> FV Player Pro -> Hosting -> Vimeo

    chrome_2019-02-22_21-17-09
    chrome_2019-02-22_21-17-09
    Martin 6 years ago

    Hello CXL,

    the Turbocharge Ajax Vimeo loading option requires that you put your Vimeo access token into the wp-config.php file. Perghaps that was lost on the staging website? You should see a message about that on Settings -> FV Player Pro -> Hosting -> Vimeo.

    Thanks,
    Martin

    CXL 6 years ago

    (Can you enable this thread for user lehok so I can also respond with my personal account?)

    Hi, it’s Leho. I took a look at fv-player-pro/fv-vimeo-ajax.php. Problem is the hardcoded parsing of wp-config.php, which in case of our staging (multi-)site imports other subsite-specific config files, which your hardcoding can’t know about.

    I moved Vimeo key configuration to main wp-config.php file and now turbocharging works. But I wonder if there is a code-level solution to this, instead of having to deal with filesystem specifics. Your thoughts?

    CXL 6 years ago

    Also, how come turbocharge sets response type application/json and then sends invalid JSON w/ wrapping into a custom <FLOWPLAYER> tag? Looks hackish.

    Martin 6 years ago

    Hello Leho,

    I published this thread now, so you can respond personally.

    The idea of that script is to bypass loading any of the WordPress code and establishing the database connection.

    Perhaps we could let it include wp-load.php in a normal way and use SHORTINT define instead.

    We added the tags as at some point multiple FV Player users faced an issue with some PHP warnings unrelated to FV Player leaking into admin-ajax.php output. At that time it seemed like a win-win solution – our player continued working for them and we didn’t had to explain to them that other plugins are cause of their issue and not FV Player. And then later that whole routine just got moved into fv-vimeo-ajax.php.

    Thanks,
    Martin

    Leho Kraav 6 years ago

    I like SHORTINIT idea. If you’re needing to get WP env infos in a sane fashion, and maybe WP API access, it sounds like the next best available option. Possibly allows sanitizing other parts of fv-vimeo-ajax.php as a positive side effect?

    PS I’m also hoping FVP code quality improves over time. I see formatting inconsistencies and whitespace errors all over the place, which usually are signs of.. let’s say “early” professionals.

    Recommendations:

    * https://github.com/foliovision/fv-wordpress-flowplayer/blob/7.3.9.727/composer.json should become stronger, I’d recommend integrating dealerdirect/phpcodesniffer-composer-installer similar to https://github.com/justintadlock/mythic/blob/1.1.0/composer.json#L27 and get everyone on the same page.

    * centralize on PhpStorm, if you haven’t already (+ have whole team upvote https://youtrack.jetbrains.com/issue/IDEABKL-708 lol)

    Martin 6 years ago

    Hello Leho,

    thank you for your insights. It’s true that some of the files are really old (2011) and it might be actually more beneficial to rewrite certain parts from scratch than trying to fix it.

    Using composer would be great. In a lot of cases we have to stay with an older version of a library and we have to do our own modifications to it as well (for example when Flowplayer team won’t accept our fixes quickly enough, or when we need to adjust the way the Dash manifest is loaded – as you noted elsewhere it’s not always easy to work with upstream), so it would be best to actually fork it and use that. We would also have to improve our Git to WP SVN deployment to work with that.

    I would also like to get rid of the AWS library and load it from some plugin.

    Thanks,
    Martin

Viewing 14 replies - 1 through 14 (of 14 total)
Reply To: Cross-origin Request Blocking – FV Player



Please Sign in or Register to upload files.

Related Posts

  1. MPEG-DASH

  2. New FV Player Update: MPEG-DASH and Other Features

    New FV Player Update: MPEG-DASH and Other Features

  3. FV Player’s New Features: Video Links and Other Improvements

Primary Sidebar

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2025 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!