Avoid an unnecessary string allocation in allow_cross_origin_request.
Merge pull request #3462 from Ms2ger/as-slice

Avoid an unnecessary string allocation in allow_cross_origin_request; r=jdm