pchen66 / panolens.js

Javascript panorama viewer based on Three.js
https://pchen66.github.io/Panolens/
MIT License
2.79k stars 498 forks source link

PANOLENS.VideoPanorama crossOrigin dosen't work #210

Closed ddilddil closed 4 years ago

ddilddil commented 4 years ago
Description

Describe the bug or issues with as much detail as possible. It'd be nice to have a code snippet or screenshots to better illustrate the problems.

Please also include a live example if possible. You can start from these templates:

Panolens version
Browser
OS
Hardware Requirements (graphics card, VR Device, ...)

graphics card - gtx1080

Hello. : ) I am not good at English, so please understand.

panorama1 = new PANOLENS.VideoPanorama( 'http://aaa/ClashofClans.mp4', { crossOrigin: 'anonymous' } );

The output is "Access to video at 'http://aaa/ClashofClans.mp4' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource." in the Chrome console.

What additional action should I take?

Thank you : )

ddilddil commented 4 years ago

Added a policy to the video server.

Solved : ) !!!