Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
No 'Access-Control-Allow-Origin' header ajax call
Phaneendra Chakravaram
Nov 22 2017 1:43 AM
132
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>
Upload Source Code
Select only zip and rar file.
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