Skip to content

Cross Origin Request issue while using AjaxQ #32

@RanbirNarang

Description

@RanbirNarang

`

  <script src="js/lib/jquery-3.2.1.min.js"></script>	
  <script src="js/lib/jquery.ajaxq.min.js"></script>		  
	<script>
		var root = 'https://jsonplaceholder.typicode.com';

		$.ajaxq('Queue1',{
			url: root + '/posts/1',
			method: 'GET',
			success: function(data) {
				console.log(data);
			}
		});			
	</script>
`

Please help me with the above code. Where am I going wrong? The error message is:

Failed to load file:///C:/Users/ranbirs/Desktop/Kendo%20RequireJS%20-%20Copy/Queue1: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions