• 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

CloudFront Restrict Viewer Access CORS Problem

[Solved]

Foliovision › Forums › FV Player › Troubleshooting › CloudFront Restrict Viewer Access CORS Problem

  • Philipp 5 years, 9 months ago

    Hello there,

    we use the FV Player to play mpd and hls-files, but there is a problem with the option “Restrict Viewer Access” in the Cloudfront distribution behaviour. When we set it to “yes” FV Player throws a 403 error and says:

    Access to XMLHttpRequest at 'https://vod.domain.com/[PATH TO .mpd FILE]' from origin 'https://www.domain.com/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

    It also wont find the crossdomain.xml for the hls-file playback then.

    When we set it to “no” everything works fine, but we need the video to be protected. The Cloudfront keypair is correct and everything else is exactly like in the guides. CORS stuff etc.

    Any idea on how to fix this?

    Best Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Juraj Kacaba 6 years ago
    Avatar photo

    Hi Phillip,

    The error seems to refer to CORS headers or your S3 bucket, can you please double check all your settings by following this tutorial?

    Finding a problem within AWS settings tends to be a little hard because of the unfriendly AWS interface. Even a slightly difference in settings can stop your videos from working.

    Also your system info could be really beneficial for us, you can find it here:

    WP Admin dashboard -> Settings -> FV Player Pro -> Tools

    You can simply copy the whole system info into this thread, we won’t post it publicly.

    Thanks for using our plugin,

    Juraj

    Philipp 6 years ago

    Hello!

    We deployed the following solution for our video on demand portal by the way: https://aws.amazon.com/de/solutions/video-on-demand-on-aws/ – and the CORS settings are like in the tutorial. We double checked. It only throws an error if we restrict viewer access though.

    Best Regards

    ### Begin System Info ###
    
    ## Please include this information when posting support requests ##
    
    Multisite:                No
    
    FV Player version:        7.3.19.727
    FV Player core version:   7.2.7.1
    FV Player license:        Valid (next check 2019-07-25 21:23:16 GMT)
    
    FV Player Pro version:    7.3.19.727
    FV Player Pro license:    Valid (next check 2019-07-25 21:23:16 GMT)
    
    WordPress Version:        5.2.2
    Permalink Structure:      /%year%/%monthnum%/%day%/%postname%/
    Active Theme:             Avada Child 1.0.0
    
    Browser:                  Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36
    PHP Version:              7.1.26
    MySQL Version:            5.5.60
    Web Server Info:          Apache
    
    WordPress Memory Limit:   40M
    PHP Safe Mode:            No
    PHP Memory Limit:         256M
    PHP Upload Max Size:      8M
    PHP Post Max Size:        8M
    PHP Upload Max Filesize:  8M
    PHP Time Limit:           180
    PHP Max Input Vars:       1000
    PHP Arg Separator:        &
    PHP Allow URL File Open:  Yes
    WP_DEBUG:                 Disabled
    
    DISPLAY ERRORS:           N/A
    cURL:                     Your server supports cURL.
    
    ACTIVE PLUGINS:
    
    Advanced Custom Fields: 5.8.2
    Age Gate: 2.3.0
    Anny Aurora: 1.0.0
    Better Search Replace: 1.3.3
    Classic Editor: 1.5
    Coming Soon Page & Maintenance Mode by SeedProd: 5.0.25
    Fusion Builder: 1.9.1
    Fusion Core: 3.9.1
    FV Player: 7.3.19.727
    FV Player Pro: 7.3.19.727
    Jetpack by WordPress.com: 7.5.3
    qTranslate-XT: 3.6.1
    WooCommerce: 3.6.5
    WooCommerce Admin: 0.15.0
    WooCommerce Services: 1.21.0
    WooCommerce Subscriptions: 2.5.7
    WooCommerce Wirecard Gateway: 1.6.0
    WP AWS S3: 1.0.0
    WP Offload Media Lite: 2.2.1
    
    SETTINGS
    
    Array
    (
        [nag_fv_player_7] => 1
        [notice_new_lightbox] => 1
        [notice_db] => 1
        [notice_xml_sitemap_iframes] => 1
        [autoplay] => false
        [googleanalytics] => 
        [key] => (redacted)
        [logo] => 
        [rtmp] => dnc7ypkynnxmi.cloudfront.net
        [auto_buffering] => false
        [disableembedding] => true
        [disablesharing] => true
        [disable_video_hash_links] => true
        [popupbox] => false
        [allowfullscreen] => true
        [allowuploads] => false
        [postthumbnail] => false
        [tgt] => backgroundcolor
        [backgroundColor] => #333333
        [canvas] => #000000
        [sliderColor] => #ffffff
        [durationColor] => #eeeeee
        [timeColor] => #eeeeee
        [progressColor] => #bb0000
        [bufferColor] => #eeeeee
        [timelineColor] => #666666
        [borderColor] => #666666
        [hasBorder] => false
        [adTextColor] => #888888
        [adLinksColor] => #ff3333
        [subtitleBgColor] => rgba(0,0,0,0.50)
        [subtitleSize] => 16
        [playlistBgColor] => #808080
        [playlistFontColor] => #
        [playlistSelectedColor] => #bb0000
        [logoPosition] => bottom-left
        [parse_commas] => false
        [width] => 1280
        [height] => 720
        [engine] => false
        [font-face] => Tahoma, Geneva, sans-serif
        [ad] => 
        [ad_width] => 0
        [ad_height] => 0
        [ad_css] => .wpfp_custom_ad { position: absolute; bottom: 10%; z-index: 20; width: 100%; }
    .wpfp_custom_ad_content { background: white; margin: 0 auto; position: relative }
        [ad_show_after] => 0
        [disable_videochecker] => true
        [interface] => Array
            (
                [ads] => false
                [align] => false
                [autoplay] => false
                [controlbar] => false
                [embed] => false
                [mobile] => false
                [playlist_advance] => false
                [playlist] => false
                [playlist_captions] => false
                [share] => false
                [speed] => false
                [splash_text] => false
                [subtitles] => false
                [sticky] => false
                [end_actions] => false
                [lightbox] => false
                [ab] => false
                [popup] => true
            )
    
        [amazon_bucket] => Array
            (
                [0] => annyauroramedia-destination-2qg3ja2i967w
            )
    
        [amazon_key] => (redacted, 1)
        [amazon_secret] => (redacted, 1)
        [amazon_region] => Array
            (
                [0] => us-east-1
            )
    
        [amazon_expire] => 15
        [amazon_expire_force] => false
        [fixed_size] => false
        [js-everywhere] => false
        [marginBottom] => 28
        [ui_play_button] => true
        [volume] => 0.7
        [player-position] => 
        [playlist_advance] => false
        [sharing_email_text] => Check out the amazing video here
        [liststyle] => horizontal
        [ui_speed_increment] => 0.25
        [popups_default] => no
        [email_lists] => Array
            (
                [#fv_list_dummy_key#] => Array
                    (
                        [title] => 
                        [description] => 
                        [first_name] => 0
                        [last_name] => 0
                        [disabled] => 0
                    )
    
                [0] => Array
                    (
                        [title] => 
                        [description] => 
                        [first_name] => 0
                        [last_name] => 0
                        [disabled] => 0
                    )
    
                [1] => Array
                    (
                        [title] => Subscribe to list one
                        [description] => Two good reasons to subscribe right now
                        [first_name] => 1
                        [last_name] => 0
                        [disabled] => 0
                    )
    
            )
    
        [sticky_video] => false
        [sticky_place] => right-bottom
        [sticky_width] => 380
        [playlist-design] => 2017 visible-captions
        [skin-slim] => Array
            (
                [progressColor] => #bb0000
            )
    
        [skin-youtuby] => Array
            (
                [progressColor] => #bb0000
            )
    
        [skin-custom] => Array
            (
                [hasBorder] => false
                [bottom-fs] => false
                [borderColor] => #666666
                [marginBottom] => 2.8
                [bufferColor] => #eeeeee
                [canvas] => #000000
                [backgroundColor] => rgba(51,51,51,1.00)
                [font-face] => Tahoma, Geneva, sans-serif
                [player-position] => 
                [progressColor] => #bb0000
                [timeColor] => #eeeeee
                [durationColor] => #eeeeee
                [design-timeline] =>  
                [design-icons] =>  
            )
    
        [skin] => slim
        [hlsjs] => true
        [lightbox_images] => false
        [lightbox_improve_galleries] => false
        [mailchimp_api] => 
        [mailchimp_list] => 
        [mailchimp_label] => Subscribe for updates
        [version] => 7.3.19.727
        [player_model_db_checked] => 7.3.19.727
        [video_model_db_checked] => 7.3.19.727
        [player_meta_model_db_checked] => 7.3.19.727
        [video_meta_model_db_checked] => 7.3.19.727
        [pro] => Array
            (
                [quality] => ,
                [transcript_theme] => light
                [video_ads_default] => no
                [video_ads_postroll_default] => no
                [video_ads_skip] => 5
                [video_ads_skip_minimum] => 10
                [watching_prompt_msg] => Are you still watching?
                [interface] => Array
                    (
                        [chapters] => false
                        [copy_text] => false
                        [hflip] => false
                    )
    
                [autoplay_once] => false
                [start_end] => false
                [autoplay_scroll] => false
                [ab_loop] => false
                [vimeo_debug] => false
                [copy_text] => false
                [copy_text_time] => 5
                [watching_prompt] => false
                [watching_prompt_interval] => 1
                [transcript_hidden] => false
                [download_template] => %caption%
                [download_no_right_click] => false
                [vimeo] => false
                [yt_logo] => false
                [youtube_ads_disable] => false
                [youtube_key] => 
                [amazon_s3] => true
                [cf_domain] => d2ga45yt2k6vli.cloudfront.net
                [cf_key_id] => (redacted)
                [cf_pk] => (redacted)
                [elastic_key] => 
                [elastic_secret] => 
                [elastic_region] => 
                [bunnycdn_domain] => 
                [bunnycdn_secure_token] => (redacted)
                [keycdn_domain] => 
                [keycdn_secure_token] => (redacted)
                [stackpath_domain] => 
                [stackpath_secure_token] => (redacted)
                [ads_exoclick_zone] => 
                [ads_exoclick_login] => 
                [ads_exoclick_cat] => 
                [ads_exoclick_site] => 
                [video_ads_between_vids] => false
                [video_ads_once] => false
                [video_ads] => Array
                    (
                    )
    
                [vimeo_at] => 
                [vimeo_dash_disable] => false
                [vimeo_iframe] => false
                [vimeo_location] => 
                [vimeo_direct_ajax] => false
            )
    
        [show_controlbar] => false
        [ui_no_picture_button] => false
        [ui_repeat_button] => false
        [ui_rewind_button] => true
        [ui_speed] => false
        [splash] => 
        [subtitleOn] => false
        [video_position_save_enable] => true
        [integrations] => Array
            (
                [featured_img] => true
                [wp_core_video] => false
                [facebook_sharing] => false
                [schema_org] => false
            )
    
        [css_disable] => false
        [profile_videos_enable_bio] => false
        [parse_comments] => false
        [rtmp-live-buffer] => false
        [db_duration] => false
        [lightbox_force] => false
        [mobile_native_fullscreen] => true
        [mobile_force_fullscreen] => true
        [mobile_alternative_fullscreen] => false
        [video_sitemap] => false
        [video_sitemap_meta] => overlord
        [playlistFontColor-proxy] => #
        [subtitleFontFace] => inherit
        [s3_browser] => true
        [fv-wp-flowplayer-submit] => SaveAllChanges
        [vi_login] => 
        [vi_pass] => 
        [key7] => 
        [fv_player_admin_pro_quality_alive] => 1
        [fv_player_admin_pro_video_ads_alive] => 1
        [video_checker_agreement] => true
    )
    
    DATABASE
    
    CREATE TABLE `wp_fv_player_players` (
      `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
      `player_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
      `player_slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
      `videos` text COLLATE utf8mb4_unicode_ci NOT NULL,
      `ab` varchar(3) COLLATE utf8mb4_unicode_ci NOT NULL,
      `ad` text COLLATE utf8mb4_unicode_ci NOT NULL,
      `ad_height` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL,
      `ad_width` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL,
      `ad_skip` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL,
      `align` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL,
      `author` bigint(20) unsigned NOT NULL DEFAULT '0',
      `autoplay` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL,
      `controlbar` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL,
      `copy_text` varchar(120) COLLATE utf8mb4_unicode_ci NOT NULL,
      `changed_by` bigint(20) unsigned NOT NULL DEFAULT '0',
      `date_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
      `date_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
      `embed` varchar(12) COLLATE utf8mb4_unicode_ci NOT NULL,
      `end_actions` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
      `end_action_value` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
      `height` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL,
      `hflip` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL,
      `lightbox` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL,
      `lightbox_caption` varchar(120) COLLATE utf8mb4_unicode_ci NOT NULL,
      `lightbox_height` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL,
      `lightbox_width` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL,
      `playlist` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
      `playlist_advance` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL,
      `qsel` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL,
      `share` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL,
      `share_title` varchar(120) COLLATE utf8mb4_unicode_ci NOT NULL,
      `share_url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
      `speed` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
      `sticky` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL,
      `video_ads` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
      `video_ads_post` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
      `width` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
    
    CREATE TABLE `wp_fv_player_playermeta` (
      `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
      `id_player` bigint(20) unsigned NOT NULL DEFAULT '0',
      `meta_key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
      `meta_value` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
      PRIMARY KEY (`id`),
      KEY `id_player` (`id_player`),
      KEY `meta_key` (`meta_key`(191))
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
    
    CREATE TABLE `wp_fv_player_videos` (
      `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
      `src` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
      `src1` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
      `src2` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
      `splash` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
      `splash_text` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
      `caption` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
      `end` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
      `mobile` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
      `rtmp` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
      `rtmp_path` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
      `start` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
      PRIMARY KEY (`id`),
      KEY `src` (`src`(191)),
      KEY `caption` (`caption`(191))
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
    
    CREATE TABLE `wp_fv_player_videometa` (
      `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
      `id_video` bigint(20) unsigned NOT NULL DEFAULT '0',
      `meta_key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
      `meta_value` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
      PRIMARY KEY (`id`),
      KEY `id_video` (`id_video`),
      KEY `meta_key` (`meta_key`(191))
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
    
    ### End System Info ###
    
    Philipp 6 years ago

    Oh! And while we tested everything we only filled out the Cloudfront (Pro) settings. S3 protected content was not filled out.

    Juraj Kacaba 6 years ago
    Avatar photo

    Hi Philipp,

    Yes! As I said earlier, even for us it is sometimes really easy to miss something throughout the set up process. You also need to have the S3 settings properly set for CloudFront protection to work. I believe everything will work just fine after you set up those S3 settings. Let us know if it worked.

    We’ll check our documentation to make sure it is all explained as clearly as it could be. Thanks for giving us feedback.

    Making the web work for you,

    Juraj

Viewing 4 replies - 1 through 4 (of 4 total)
Reply To: CloudFront Restrict Viewer Access CORS Problem



Please Sign in or Register to upload files.

Related Posts

  1. Serving Private Videos via CloudFront

  2. Using HLS With FV Player

  3. Amazon CloudFront with Download Protection

    Amazon CloudFront with Download Protection

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!