是否可以在 URL 本身中传递 HTTP headers?

Is it possible to pass HTTP headers in the URL itself?

例如:如果我想在 url 本身中将 Content-Type 作为 application/json 传递,我该怎么做?

我知道 Postman,但没怎么用过。我想知道我是否可以从 chrome 本身做我需要的事情,而不需要使用 POSTMAN。

不,你不能。 HTTP 标准无法做到这一点。

但是您可以 运行 JS with ajax 通过书签机制从地址栏向您请求 headers。

https://en.wikipedia.org/wiki/Bookmarklet

Possible to run Javascript from address bar (bookmarklet) within Google Chrome's settings panel?