Datatables will no load due to user using www.site.com or site.com

Datatables will no load due to user using www.site.com or site.com

jotsysjotsys Posts: 5Questions: 0Answers: 0
edited September 2013 in General
I just wanted to share this with you.
I took me a while to figure it out. Datatables will not load data 'Loading...' appears. This is not Datatables issue.
There seems to be an issue if the user use www.site.com or site.com to access the site, and depends how you call the method to call Datatables.

Thx

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Correct - you can't get data from a different domain (including with or with a www prefix) because the browser blocks it for security reasons. I'd suggest using relative or absolute paths rather than with a full domain prefix.

    Allan
This discussion has been closed.