prilogy / vimeo_player

Vimeo player for Flutter
BSD 3-Clause "New" or "Revised" License
20 stars 66 forks source link

No 'Access-Control-Allow-Origin' header is present on the requested resource. #4

Open GSamuel opened 4 years ago

GSamuel commented 4 years ago

vimeoplayer-flutter

When developing for flutter web no videos will load, because vimeo does not send an Access-Control-Allow-Origin header with the /config endpoint. i.e. https://player.vimeo.com/video/395212534/config.

When running the application on a domain with https enabed i.e. https://5e4f23850498.ngrok.io, the same error occurs.

I am using the code from the example:
VimeoPlayer(id: '395212534', autoPlay: true),

Is there any workaround for this problem?

VladislavRUS commented 3 years ago

You need to open chrome with disabled security flag, look here https://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome

AntoineBouquetSully commented 3 years ago

I have the same problem here. There is a solution for a prod env ?