Divyesh
Divyesh

Reputation: 93

How to hide content from URL but still need to send to server in node.js and express.?

I have tried to hide some content from URL and still I want to send that content to server in express app.but haven't got any solutions yet.

e.g. I have an URL like, www.abc.com/viewblog/V8eNr6adLJ/post-title

now I want to remove "V8eNr6adLJ" from URL but still need to pass on server.

How can I do that ? need I to use any npm modules or any other way to achieve this?

Thanks.

Upvotes: 1

Views: 2663

Answers (2)

Ravindra Galav
Ravindra Galav

Reputation: 2900

You should use method POST in express http://expressjs.com/4x/api.html#app.post.method

Upvotes: 1

athivvat
athivvat

Reputation: 55

You should use method POST instead

Upvotes: 0

Related Questions