flimshaw / flimshaw/Valiant360
CORS issue
- Dominant language
- JavaScript
- Stars
- 780
- Forks
- 151
- PR merge metrics
- No merged PRs in 30d
Description
jquery.valiant360.js:352 Access to XMLHttpRequest at 'file:///C:/Users/Maverick/Desktop/three/video/Video.MOV' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
I have used this as it's in the documentation, still getting Cors error and video status error :0
$(document).ready(function() {
$('.valiantContainer').Valiant360({
crossOrigin: 'anonymous', // valid keywords: 'anonymous' or 'use-credentials'
clickAndDrag: false, // use click-and-drag camera controls
keyboardControls: true, // use keyboard controls (move by arrows)
flatProjection: false, // map image to appear flat (often more distorted)
fov: 35, // initial field of view
fovMin: 3, // min field of view allowed
fovMax: 100, // max field of view allowed
hideControls: false, // hide player controls
lon: 0, // initial lon for camera angle
lat: 0, // initial lat for camera angle
loop: "loop", // video loops by default
muted: true, // video muted by default
volume: 0.5, // video volume by default
autoplay: true // video autoplays by default
});
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.