Mark cors preflight requests
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 63
- Forks
- 26
- Avg merge
- 6d 2h
- Merged PRs (30d)
- 1
Description
Mark request as cors preflight here https://github.com/yiisoft/router/blob/98969eb86377333fbf01a2eb2ef4382e928b197b/src/RouteCollection.php#L186
Maybe
$request->withAttribute('preflight', true);
Contributor 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.
Research direction
Start in src/RouteCollection.php at the linked line and trace how the request is handled there. Confirm how CORS preflight requests are identified and ensure the request is marked with the proposed preflight attribute; done means the attribute is present for those requests without changing other routing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100