Backend: Add CORS preflight caching headers in Ktor server
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Find the Ktor server CORS plugin configuration and the existing server tests for OPTIONS requests. Set maxAgeInSeconds to 86400, then add a test that checks the Access-Control-Max-Age response header; the issue is done when the test passes and the header is present.
Written by the indexing model from the issue text.
Description
Summary
Currently, Ktor server responds to preflight OPTIONS requests without Access-Control-Max-Age. Add preflight caching to reduce unnecessary round-trip latency for web/desktop clients.
Acceptance Criteria
- Configure
maxAgeInSeconds = 86400(24 hours) in Ktor CORS plugin. - Add test asserting
Access-Control-Max-Ageheader on OPTIONS requests.
- Dominant language
- Kotlin
- Stars
- 1
- Forks
- 0
- Avg merge
- 4m
- Merged PRs (30d)
- 12
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from developmentwithyash/yaan
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
developmentwithyash/yaan#65 ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
developmentwithyash/yaan#62 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
developmentwithyash/yaan#60 ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
developmentwithyash/yaan#57 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
developmentwithyash/yaan#41 ·
Maintainers usually reply within 1 day
All issues in developmentwithyash/yaan
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Maintainers usually reply within 4 days
-
bug P2-should size/XS viz
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
albertocavalcante/gvy#1631 ·
Maintainers usually reply within 1 day
-
Auto apply filtersOpenenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
IacobIonut01/ReFra#1410 ·
Maintainers usually reply within 17 days
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
rustyrazorblade/easy-db-lab#1087 ·
Maintainers usually reply within 1 day