TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Phaneendra Chakravaram
NA
490
100k
No 'Access-Control-Allow-Origin' header ajax call
Nov 22 2017 1:43 AM
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>
Reply
Answers (
1
)
How can I access html elements in MVC
How can i integrate my existing chat bot to an uwp app