Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS issue #64

Open
sharad22gupta opened this issue May 30, 2019 · 1 comment
Open

CORS issue #64

sharad22gupta opened this issue May 30, 2019 · 1 comment

Comments

@sharad22gupta
Copy link

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

<script type="text/javascript">
		$(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
});
@goriliukasbuxton
Copy link

@sharad22gupta , were you able to resolve CORS issue?
Thank you,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants