jscroll
jscroll copied to clipboard
jscroll can not load html using ajax (cross domain)
I get this error when ajax from different subdomain.
Failed to load https://www.idntimes.com/ajax/notification-page?page=1: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://community.idntimes.com' is therefore not allowed access. The response had HTTP status code 404.
How can I inject jquery ajax options:
xhrFields: {
credentials: true
}
into jscroll?
Thank you