-
-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
When using the Silex security service provider, CORS preflight requests get halted by the firewall on secured paths.
It would be handy if this package could offer a RequestMatcher implementation to match these preflight requests and let them pass through the firewall. I could then configure the firewall as follows:
$app['security.firewalls'] = array(
'authentication' => array(
'pattern' => '^/auth',
),
'cors-preflight' => array(
'pattern' => $app['cors_preflight_request_matcher'],
),
'secured' => array(
'pattern' => '^.*$',
'uitid' => true,
'users' => $app['uitid_firewall_user_provider'],
),
);I have some working code already in our project (https://github.com/cultuurnet/silex-uitid-provider/blob/master/src/Security/PreflightRequestMatcher.php), I'd be happy to extract it and contribute it through a pull request, unless you see a better way to accomplish this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels