Skip to content

fix: add CORS to JSON leaderboard errors - #99

Merged
anurag629 merged 1 commit into
codercops:developfrom
bhushan4work:fix#98
Oct 23, 2026
Merged

anurag629 merged 1 commit into
codercops:developfrom
bhushan4work:fix#98

Conversation

@bhushan4work

Copy link
Copy Markdown
Collaborator

What does this change?

Adds Access-Control-Allow-Origin: * to leaderboard JSON 404 and 503 responses, with regression tests. HTML responses remain unchanged.

Closes #98

How I tested this

  • npm run typecheck passed
  • npm test passed (377 tests)

AI assistance

none

Checklist

  • I was assigned the linked issue
  • npm run typecheck and npm test pass
  • New behavior has a test in test/
  • For a bug fix: the new test fails without my change
  • No tokens or secrets in the diff

@anurag629 anurag629 added the hacktoberfest-accepted PR counts for Hacktoberfest label Oct 23, 2026
@anurag629
anurag629 merged commit 4129fae into codercops:develop Oct 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted PR counts for Hacktoberfest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/leaderboard/<id>.json drops the CORS header on its 404 and 503 responses

2 participants