Skip to content

How does cors work with poem-openapi? #155

Answered by sunli829
liang-kang asked this question in Q&A
Discussion options

You must be logged in to vote

If the request does not have the Origin header, means it is not a cross-domain request and there will be no access-control-allow-origin header in the response.

curl -I "http://localhost:3000/api/hello" -H "Origin: xxxx"

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@liang-kang
Comment options

@sunli829
Comment options

@liang-kang
Comment options

Comment options

You must be logged in to vote
1 reply
@liang-kang
Comment options

Answer selected by liang-kang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants