Error 1: Cannot set headers after they are sent to the client

After the problem is solved, the translation is as follows: After the response information has been returned to the client, the headers can no longer be set

Reason: The client sends a request once, and the server gives two or more responses

Solution: Clean up redundant responses; immediately return the function after each response

Guess you like

Origin blog.csdn.net/u010682774/article/details/88100862