Commit 64d5a000 by Qiang Xue

Merge pull request #5319 from dolgopolov/master

fix docs typo on \yii\filters\Cors
parents 710e70b8 0cf1093b
......@@ -39,6 +39,7 @@ use yii\web\Response;
* return [
* 'corsFilter' => [
* 'class' => \yii\filters\Cors::className(),
* 'cors' => [
* // restrict access to
* 'Origin' => ['http://www.myserver.com', 'https://www.myserver.com'],
* 'Access-Control-Request-Method' => ['POST', 'PUT'],
......@@ -48,6 +49,7 @@ use yii\web\Response;
* 'Access-Control-Allow-Credentials' => true,
* // Allow OPTIONS caching
* 'Access-Control-Max-Age' => 3600,
* ],
*
* ],
* ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment