-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSE extension response does not return "Access-Control-Allow-Origin" cause cors #773
Labels
question
Further information is requested
Comments
cc @FGYFFFF |
It looks like the POST request does not have an origin header. |
@jibenliu Can you add the code of how the middleware is used? such as or other method?
|
|
@jibenliu |
cool @rogerogers |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the Question
curl OPTIONS request return 204 http code, but when stream begin return no header about "Access-Control-Allow-Origin"
Reproducible Code
I have used cors middleware
OPTIONS curl request info
POST request curl info
Expected behavior
POST response should return Access-Control-Allow-Origin: http://localhost:3000
Hertz version:
v0.6.2
The text was updated successfully, but these errors were encountered: