jscroll icon indicating copy to clipboard operation
jscroll copied to clipboard

jscroll can not load html using ajax (cross domain)

Open polapolo opened this issue 7 years ago • 0 comments

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

polapolo avatar Aug 01 '18 04:08 polapolo