Skip to content
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

Invalid CORS now returns a 403 (instead of 500) #1577

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

ggrossetie
Copy link
Member

Before

$ http :8000/graphviz/svg/eNpLyUwvSizIUHBXqPZIzcnJ17ULzy_KSanlAgB1EAjQ "Origin: lsp:///bad"
HTTP/1.1 500 Internal Server Error
content-length: 41
content-type: text/plain

Error 500: CORS Rejected - Invalid origin

After

$ http :8000/graphviz/svg/eNpLyUwvSizIUHBXqPZIzcnJ17ULzy_KSanlAgB1EAjQ "Origin: lsp:///bad"
HTTP/1.1 403 Forbidden
content-length: 41
content-type: text/plain

Error 403: CORS Rejected - Invalid origin

@ggrossetie ggrossetie merged commit e418635 into yuzutech:main Jun 15, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant