Commit 2e4625d6 by Alexander Makarov

Merge pull request #5405 from SerjRamone/patch-1

[skip ci] typo fix
parents f3a6b198 3611b51b
...@@ -15,7 +15,7 @@ use yii\web\Response; ...@@ -15,7 +15,7 @@ use yii\web\Response;
/** /**
* Cors filter implements [Cross Origin Resource Sharing](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing). * Cors filter implements [Cross Origin Resource Sharing](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing).
* Make sure to read carefully what CORS does and does not. CORS do not secure your API, * Make sure to read carefully what CORS does and does not. CORS do not secure your API,
* but allow the developper to grant access to third party code (ajax calls from external domain) * but allow the developer to grant access to third party code (ajax calls from external domain)
* *
* You may use CORS filter by attaching it as a behavior to a controller or module, like the following, * You may use CORS filter by attaching it as a behavior to a controller or module, like the following,
* *
...@@ -120,7 +120,7 @@ class Cors extends ActionFilter ...@@ -120,7 +120,7 @@ class Cors extends ActionFilter
} }
/** /**
* Extract CORS headers fron the request * Extract CORS headers from the request
* @return array CORS headers to handle * @return array CORS headers to handle
*/ */
public function extractHeaders() public function extractHeaders()
...@@ -177,7 +177,7 @@ class Cors extends ActionFilter ...@@ -177,7 +177,7 @@ class Cors extends ActionFilter
* Handle classic CORS request to avoid duplicate code * Handle classic CORS request to avoid duplicate code
* @param string $type the kind of headers we would handle * @param string $type the kind of headers we would handle
* @param array $requestHeaders CORS headers request by client * @param array $requestHeaders CORS headers request by client
* @param array $responseHeaders CORS response headers sent to the clinet * @param array $responseHeaders CORS response headers sent to the client
*/ */
protected function prepareAllowHeaders($type, $requestHeaders, &$responseHeaders) protected function prepareAllowHeaders($type, $requestHeaders, &$responseHeaders)
{ {
...@@ -205,7 +205,7 @@ class Cors extends ActionFilter ...@@ -205,7 +205,7 @@ class Cors extends ActionFilter
/** /**
* Adds the CORS headers to the response * Adds the CORS headers to the response
* @param Response $response * @param Response $response
* @param array CORS headers which have been compouted * @param array CORS headers which have been computed
*/ */
public function addCorsHeaders($response, $headers) public function addCorsHeaders($response, $headers)
{ {
......
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