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

Cross Origin Request issue while using AjaxQ #32

Open
RanbirNarang opened this issue Dec 22, 2017 · 1 comment
Open

Cross Origin Request issue while using AjaxQ #32

RanbirNarang opened this issue Dec 22, 2017 · 1 comment

Comments

@RanbirNarang
Copy link

`

  <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

@danieltulp
Copy link

danieltulp commented Jan 8, 2018

This fiddle has no such problems https://jsfiddle.net/danieltulp/92tL5rty/ as the mentioned API has been created to prevent CORS, we will look at it more together (we work in the same team), this issue can be closed

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