Data table returning response over HTTP with 301 error when request is being sent on HTTPS

Data table returning response over HTTP with 301 error when request is being sent on HTTPS

jimkjimk Posts: 2Questions: 0Answers: 0

Hi I am using jquery data table and getting an error with 301 ngix response code. I am sending request over HTTPS but getting HTTP in response header.
Can anypne help me out I am stuck since 2 days
Thanks in advance!

Replies

  • kthorngrenkthorngren Posts: 21,143Questions: 26Answers: 4,918

    That is an error from your server. You will need to look at the server logs to determine why it is returning a 301 response. Maybe this article will help:
    https://airbrake.io/blog/http-errors/301-moved-permanently

    Kevin

  • jimkjimk Posts: 2Questions: 0Answers: 0

    actually we have no root access of the server and using cloudways. the same thing was running fine on AWS but here it is giving an error.

  • colincolin Posts: 15,237Questions: 1Answers: 2,598
    edited October 2019

    As Kevin said, it's an error coming back from the server, so you need to diagnose that. DataTables wouldn't be causing that - you can verify that by issuing the same HTTP requests by hand...

This discussion has been closed.