Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
No 'Access-Control-Allow-Origin' header ajax call
Phaneendra Chakravaram
7y
149
1
Reply
I got this error No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:52038' is therefore not allowed access.
<script>
$(document).ready(
function
() {
$.ajax({
url:
'https://www.bickets.com/cinemas.aspx?type=3'
,
headers: {
'Content-Type'
:
'application/x-www-form-urlencoded'
},
type:
"GET"
,
/* or type:"GET" or type:"PUT" */
dataType:
"json"
,
data: {
},
success:
function
(result) {
console.log(result);
},
error:
function
() {
console.log(
"error"
);
}
});
});
</script>
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How can I access html elements in MVC
How can i integrate my existing chat bot to an uwp app