I
I
ivandao2019-10-28 10:41:15
Node.js
ivandao, 2019-10-28 10:41:15

Can I send a response to the client and body at the same time and do a redirect?

Can I send a response to the client and body at the same time and do a redirect?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Decadal, 2019-10-28
@ivandao

If the client is a browser, then no
Redirects are the headers you send in the response. Upon seeing the redirect, the browser ignores the body and redirects.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question