[GH-ISSUE #426] No 'Access-Control-Allow-Origin' #162

Closed
opened 2026-03-16 13:48:24 +03:00 by kerem · 11 comments
Owner

Originally created by @DavidSmith2018 on GitHub (Dec 13, 2019).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/426

use docker
#run
docker run -p 3000:3000 liyasthomas/postwoman:latest

' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Originally created by @DavidSmith2018 on GitHub (Dec 13, 2019). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/426 use docker #run docker run -p 3000:3000 liyasthomas/postwoman:latest ' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
kerem 2026-03-16 13:48:24 +03:00
Author
Owner

@AndrewBastin commented on GitHub (Dec 13, 2019):

Hi there,

Could you clarify the issue a bit more ?

CORS issues can be cleared (unless your target URL is local) by enabling the proxy.

Thank you!

<!-- gh-comment-id:565288903 --> @AndrewBastin commented on GitHub (Dec 13, 2019): Hi there, Could you clarify the issue a bit more ? CORS issues can be cleared (unless your target URL is local) by enabling the proxy. Thank you!
Author
Owner

@badandboy commented on GitHub (Dec 20, 2019):

I have the same question,
CORS be cleared by enabling the proxy on https://postwoman.io
but on my own site, it doesn`t work

<!-- gh-comment-id:567761327 --> @badandboy commented on GitHub (Dec 20, 2019): I have the same question, CORS be cleared by enabling the proxy on https://postwoman.io but on my own site, it doesn`t work
Author
Owner

@liyasthomas commented on GitHub (Dec 20, 2019):

Please consider reporting issues in given Issue template or at least tell how to reproduce the issue so we could track it and fix it ASAP.

<!-- gh-comment-id:567765408 --> @liyasthomas commented on GitHub (Dec 20, 2019): Please consider reporting issues in given [Issue template](https://github.com/liyasthomas/postwoman/blob/master/.github/ISSUE_TEMPLATE/bug_report.md) or at least tell how to reproduce the issue so we could track it and fix it ASAP.
Author
Owner

@badandboy commented on GitHub (Dec 20, 2019):

Please consider reporting issues in given Issue template or at least tell how to reproduce the issue so we could track it and fix it ASAP.

all the methods can work well On the window system, on the linux system, they don`t works, including docker, npm run dev and npm run build

<!-- gh-comment-id:567824283 --> @badandboy commented on GitHub (Dec 20, 2019): > Please consider reporting issues in given [Issue template](https://github.com/liyasthomas/postwoman/blob/master/.github/ISSUE_TEMPLATE/bug_report.md) or at least tell how to reproduce the issue so we could track it and fix it ASAP. all the methods can work well On the window system, on the linux system, they don`t works, including docker, npm run dev and npm run build
Author
Owner

@liyasthomas commented on GitHub (Dec 22, 2019):

on the linux system, they don`t work

Our CI runs, tests and builds the project in Linux, and have successful Docker builds too. Please tell how to reproduce your issue.

<!-- gh-comment-id:568224110 --> @liyasthomas commented on GitHub (Dec 22, 2019): > on the linux system, they don`t work Our CI runs, tests and builds the project in [Linux](https://travis-ci.com/liyasthomas/postwoman), and have successful [Docker builds](https://hub.docker.com/r/liyasthomas/postwoman) too. Please tell how to reproduce your issue.
Author
Owner

@badandboy commented on GitHub (Dec 22, 2019):

on the linux system, they don`t work

Our CI runs, tests and builds the project in Linux, and have successful Docker builds too. Please tell how to reproduce your issue.

1)Clone this repo with git.
2)Install dependencies by running npm install within the directory that you cloned (probably postwoman).
3)Start the development server with npm run dev.
site : http://postwoman.badandboy.cn

2,
1)Clone this repo with git.
2)Install dependencies by running npm install within the directory that you cloned (probably postwoman)
3) npm run build
4) config postwoman2.badandboy.cn to dir dist
site: http://postwoman2.badandboy.cn

3,
1)docker pull liyasthomas/postwoman
#run
2)docker run -p 8888:3000 liyasthomas/postwoman:latest
site : http://postwoman3.badandboy.cn

<!-- gh-comment-id:568241134 --> @badandboy commented on GitHub (Dec 22, 2019): > > on the linux system, they don`t work > > Our CI runs, tests and builds the project in [Linux](https://travis-ci.com/liyasthomas/postwoman), and have successful [Docker builds](https://hub.docker.com/r/liyasthomas/postwoman) too. Please tell how to reproduce your issue. 1. 1)Clone this repo with git. 2)Install dependencies by running npm install within the directory that you cloned (probably postwoman). 3)Start the development server with npm run dev. site : http://postwoman.badandboy.cn 2, 1)Clone this repo with git. 2)Install dependencies by running npm install within the directory that you cloned (probably postwoman) 3) npm run build 4) config postwoman2.badandboy.cn to dir dist site: http://postwoman2.badandboy.cn 3, 1)docker pull liyasthomas/postwoman #run 2)docker run -p 8888:3000 liyasthomas/postwoman:latest site : http://postwoman3.badandboy.cn
Author
Owner

@gaoljhy commented on GitHub (Dec 25, 2019):

u just try send https://www.baidu.com on https://postwoman.io
why this can't happen in postman
And Why i must enable proxy to use

<!-- gh-comment-id:568867037 --> @gaoljhy commented on GitHub (Dec 25, 2019): u just try send <https://www.baidu.com> on <https://postwoman.io> why this can't happen in postman And Why i must enable proxy to use
Author
Owner

@liyasthomas commented on GitHub (Dec 25, 2019):

Hope this answers might help.

https://stackoverflow.com/a/10636765
https://stackoverflow.com/a/13400954

<!-- gh-comment-id:568875456 --> @liyasthomas commented on GitHub (Dec 25, 2019): Hope this answers might help. https://stackoverflow.com/a/10636765 https://stackoverflow.com/a/13400954
Author
Owner

@gaoljhy commented on GitHub (Dec 27, 2019):

Hope this answers might help.

https://stackoverflow.com/a/10636765
https://stackoverflow.com/a/13400954

Okay,I get it,Thanks
So,Do I must enable a proxy to use it ?

<!-- gh-comment-id:569250130 --> @gaoljhy commented on GitHub (Dec 27, 2019): > Hope this answers might help. > > https://stackoverflow.com/a/10636765 > https://stackoverflow.com/a/13400954 Okay,I get it,Thanks So,Do I must enable a proxy to use it ?
Author
Owner

@liyasthomas commented on GitHub (Dec 27, 2019):

Unless the server doesn't imply any restrictions or we have an offline build. #267

<!-- gh-comment-id:569259719 --> @liyasthomas commented on GitHub (Dec 27, 2019): Unless the server doesn't imply any restrictions or we have an offline build. #267
Author
Owner

@gaoljhy commented on GitHub (Dec 28, 2019):

So cool !

<!-- gh-comment-id:569383854 --> @gaoljhy commented on GitHub (Dec 28, 2019): So cool !
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#162
No description provided.