4 ms·
Don't CORS restrictions basically render this whole tool useless?
by dalbotex 7y ago
Don't CORS restrictions basically render this whole tool useless?
- lol768 7y agoI suppose it's useful for APIs with permissive CORS headers. Maybe there's also some way to run it locally as a separate app with SOP disabled? Maybe something like: $ chromium-browser --disable-web-security --user-data-dir="/tmp" --kiosk https://liyasthomas.github.io/postwoman/ Unrelated, meta note: why does indiehackers need a separate interstitial splash screen, visible for ~4-5 seconds to load a simple article page?
- ge96 7y agoload balancer /s
- oauea 7y agoThen you're launching a second chromium instance and practically recreating Electron.
- lol768 7y agoYes, indeed. Sort of defeats the point of Postwoman being more performant.. Still, this seems safer than the various extensions that have been recommended in order to disable the SOP. I'd rather the user's data wasn't on the line.
- oauea 7y agoRight, so I don't see any reason why I would ever want to use this tool when far superior alternatives (like postman) exist.
- jacobush 7y agoI don't understand. Plus it has 1700 stars on github.
- coldtea 7y agoWhat exactly is there to "understand"?
- Vogtinator 7y agoIt indeed seems to be totally broken.
- ge96 7y ago~~Does Postman work with JS? I've used it with Python.~~ Oh nvm I'm thinking of a different service
- jamessb 7y agoIt seems the user created this because they thought that Postman required too many resources as an Electron app. I'm not sure why they didn't just use a commandline tool (e.g. httpie [1]) that would work with any API, rather than just those with permissive CORS headers. [1]: https://httpie.org/ https://httpie.org/
- batoure 7y agoSo Postman used to be a lightweight Chrome plugin. Then its developers turned it into an electron app with lots and lots and lots of features. They did this as a vehicle to begin offering paid features and enterprise plans. To your second point, despite years of writing Curl some times its nice to have an interface and for some people that is their personal preference.
- jannes 7y agoAnother reason why they moved to Electron may be that Google announced [0] in 2016 that they will discontinue Chrome Apps (outside of Chrome OS). [0]: https://blog.chromium.org/2016/08/from-chrome-apps-to-web.html https://blog.chromium.org/2016/08/from-chrome-apps-to-web.ht...
- ch_sm 7y agoit could proxy the requests through a server.
- deleted 7y ago[deleted]
- losvedir 7y agoI use Postman a fair bit, and looking through my history it's mostly playing with 3rd party APIs to see what format they return and how they respond to query params and such. So it works for that purpose, since those generally won't have CORS restrictions. It probably won't work for testing of your own API endpoints for, say, a SPA, though, which is likely to have CORS. But for local testing where I control the backend, I mostly just rely on printing responses to the terminal anyway.