403 (Forbidden) error when I include jquery.dataTables.min.js in footer

403 (Forbidden) error when I include jquery.dataTables.min.js in footer

shahzadthathalshahzadthathal Posts: 2Questions: 1Answers: 0

Hi,

I have tried to display data in jquery data table, I included jquery.dataTables.min.js in footer:

But in the console I'm getting this error:

www.example.com/subdir/minify/js/jquery.dataTables.min.js,global.js 403 (Forbidden)

But if I can remove jquery.dataTables.min.js from footer then jquery is working although datatable not functional.
Is it any security issue in datatable js file?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,356Questions: 1Answers: 10,444 Site admin
    Answer ✓

    Sounds like the file on your server doesn't have read access. It should be 644 permissions.

    Allan

  • shahzadthathalshahzadthathal Posts: 2Questions: 1Answers: 0

    Hi Allan,

    thanks but I have also included other files and that are working, may be the issue in minify version like missing ; at the end of the file.

  • allanallan Posts: 63,356Questions: 1Answers: 10,444 Site admin

    That wouldn't cause a 403 error.

    I'd suggest checking your server's error log which will likely have more information about the error.

    Allan

This discussion has been closed.