howiekarenlam
howiekarenlam

Reputation: 19

Can't access the website via Postman but on chrome without any issue

Problem 1: (resolved - Thanks @Ranjith Thangaraju)

I tried to access this website via postman, but I can't do this because I got an error: https://i.sstatic.net/Dmfj8.png

Then when I try to access it on chrome - there's no restriction at all - I can access it: https://finance.vietstock.vn/

Why is this happening and how to resolve it?

Problem 2:

When I access this page [https://finance.vietstock.vn/CEO/phan-tich-ky-thuat.htm], there is one of the APIs that I've tried to call from the postman but I couldn't, could you please point me a solution for this?

Chrome: https://i.sstatic.net/RTfsM.png

Postman: https://i.sstatic.net/2P2Qe.png

Upvotes: -1

Views: 1255

Answers (1)

Ranjith Thangaraju
Ranjith Thangaraju

Reputation: 66

Go to Headers -> Click on Bulk Edit For Reference

Add the Following Lines

Host: finance.vietstock.vn

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36

For Reference

Then Hit Send!! ;)

Upvotes: 2

Related Questions