Strange operation of the pages function

For Workers & Pages, what is the name of the domain?

What is the error number?

500

What is the error message?

Internal Server Error

What is the issue or error you’re encountering

While I release my application in the production version and it is already on the actual server then each endpoint gives an error 500 when, for example, a login form query is sent, and when I send a query using Postman then the server works fine.

What steps have you taken to resolve the issue?

I checked how the server works when sending queries directly from the domain and from Postman.

What are the steps to reproduce the issue?

Go to EchoVerse and use the test login “John” and password “password”. When you try to log in you will get an “Internal Server Error” error, but when you use the Credencials header to endpoint https://cs50-final-project.niezleziolko.app/api/auth/user then you will get a response of 200. The same for other forms and queries available on the site.

Screenshot of the error