I tried doing something like this and it works, but I end up with error:
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
Any ideas? Couldn't resolve it with solutions from many Stack Overflow topics.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I tried doing something like this and it works, but I end up with error:
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
Any ideas? Couldn't resolve it with solutions from many Stack Overflow topics.