yiisoft / yiisoft/router

Mark cors preflight requests

Open
#245 3 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.