X
X
xster2017-11-08 16:02:20
JavaScript
xster, 2017-11-08 16:02:20

How to accept data from another resource on nodejs/express?

Good afternoon! Please tell me how to accept data in nodejs/express from another resource and send it to the client?
I’m just starting to understand the node (more on the front), so sorry for the stupid question, I can’t google something.
It is not clear whether they need to be processed or not, to prescribe some headers ... I
figured out how to send a string or something like that, but I can’t accept data from another resource and send it.
I would be grateful for any help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2017-11-08
@xster

To receive data, you must first make a request, either ajax if through the front or request if through the back. After that you get a response, you can send the response to the front via res.json for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question