Postman gives Cloudfront errors, but works in browser
Asked Answered
H

2

6

A simple HTTP GET request.

When I put the URL into the browser bar, the results come back. (a small JSON object)

When I put the same url into Postman (https://www.postman.com/) I got the following 403 error back:


ERROR: The request could not be satisfied

403 ERROR

The request could not be satisfied.

Bad request. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner. If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
Generated by cloudfront (CloudFront)
Request ID: xxxxxxxxxxxxxxxx

What is causing this and how can I use Postman on API Gateway in AWS?

As a further clue to the puzzle - when I change the request type of 'post' in postman, I get the expected response for an undefined resource: {"message":"Missing Authentication Token"}

Heavenward answered 23/11, 2021 at 6:17 Comment(3)
any solution on this?Menial
Do you have the "Host" header checked on the Headers tab?Opossum
Did you manage to solve that? I am facing the same issue right nowCoax
K
2

I was facing the same error and I checked the host header in the Headers tab, as user Chris suggested. That's all and the problem was solved!

Koby answered 1/9, 2023 at 5:24 Comment(2)
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. To get notified when this question gets new answers, you can follow this question. Once you have enough reputation, you can also add a bounty to draw more attention to this question. - From ReviewAmbagious
My problem was exactly the same. Checking host header in Postman as I mentioned solved the issue. Why should I do a different question and how this is not answering the question if it solved the same issue?Zacharie
J
-1

I encountered a similar problem and managed to fix it by selecting the "None" option in the Body tab.

Jacinda answered 18/7 at 19:55 Comment(1)
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Iata

© 2022 - 2024 — McMap. All rights reserved.