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

Add and check for CORS headers. #1051

Closed
wants to merge 5 commits into from
Closed

Add and check for CORS headers. #1051

wants to merge 5 commits into from

Conversation

zaneenders
Copy link
Collaborator

This PR updates the endpoints of the demo server to use the Access-Control-Allow-Origin * always header in an effort to close issues #1048 and Odyssey 183

@zaneenders zaneenders changed the title Add and check for cors headers. Add and check for CORS headers. Nov 15, 2024
@zaneenders
Copy link
Collaborator Author

I believe that the test is failing from an update to Rival?

@zaneenders zaneenders marked this pull request as ready for review November 15, 2024 20:51
src/api/demo.rkt Outdated
@@ -95,7 +95,8 @@
#"OK"
(current-seconds)
#"text"
(list (header #"X-Job-Count" (string->bytes/utf-8 (~a (job-count)))))
(list (header #"X-Job-Count" (string->bytes/utf-8 (~a (job-count))))
(header #"Access-Control-Allow-Origin" (string->bytes/utf-8 "* always")))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might not need "Access-Control-Allow-Origin"

@zaneenders zaneenders marked this pull request as draft November 15, 2024 21:06
@zaneenders zaneenders marked this pull request as ready for review November 16, 2024 01:24
@zaneenders zaneenders marked this pull request as draft November 16, 2024 01:34
@zaneenders zaneenders closed this Nov 16, 2024
@zaneenders zaneenders deleted the zane-cors-headers branch November 16, 2024 11:35
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.

1 participant