Skip to content

CORS issue #64

@sharad22gupta

Description

@sharad22gupta

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
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions