5

I'm using the Postman packaged app + the interceptor extension. It seems that chrome adds an Origin: chrome-extension://aicmkgpgakddgnaphhhpliifpcfhicfo header automatically for requests that come from Postman. I want to remove this header completely.

When using the Interceptor extension, if I use the regular Postman headers tab to enter an entry for the Origin header, then my request uses the specified value. So, I can change the value of the header. I then tried leaving the value field blank for the header, but then my request reverts to sending Origin: chrome-extension://....

How do I send a request with postman that either sends a blank Origin header, or totally omits it?

goat
  • 31,486
  • 7
  • 73
  • 96

2 Answers2

6

I tried it by myself and hope my solution will suit you. When I make a POST request using Chrome app it adds origin header.

But when I use the desktop app no header is added to my POST request.

Here is an example of header sent by the desktop Postman app:

enter image description here

Ryan Gates
  • 4,501
  • 6
  • 50
  • 90
Denis Koreyba
  • 3,144
  • 1
  • 31
  • 49
  • 1
    Thanks, I wasn't aware they now have a desktop version :) – goat Mar 11 '17 at 23:37
  • 1
    Note that you have to also install [Postman Interceptor](https://chrome.google.com/webstore/detail/postman-interceptor/aicmkgpgakddgnaphhhpliifpcfhicfo?hl=en) as `Origin` is a restricted header. Read more [here](https://www.getpostman.com/docs/postman/sending_api_requests/requests) – Jay Wick Aug 21 '17 at 02:07
  • Thank you, this fixed it for me. – AntonNiklasson Aug 30 '17 at 13:38
0

I am unable to use Postman desktop app (corporate policy yey!) so I'm stuck with Chrome extension Postman.

I was able to overwrite the Origin header by installing Postman Interceptor extension. You also need to active the Interceptor app in Chrome AND Postman. More detailed instructions can be found here: https://stackoverflow.com/a/41564921/1169726

Ignas Vaitekunas
  • 188
  • 1
  • 10