Skip to content

Commit

Permalink
Merge pull request LM-Commons#30 from visto9259/update-docs
Browse files Browse the repository at this point in the history
Update docs and README
  • Loading branch information
visto9259 authored Apr 22, 2024
2 parents 39fa135 + 8755b4c commit f06b650
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
[![Latest Stable Version](https://poser.pugx.org/lm-commons/lmc-cors/v)](//packagist.org/packages/lm-commons/lmc-cors)
[![License](https://poser.pugx.org/lm-commons/lmc-cors/license)](//packagist.org/packages/lm-commons/lmc-cors)
[![Total Downloads](https://poser.pugx.org/lm-commons/lmc-cors/downloads)](//packagist.org/packages/lm-commons/lmc-cors)
![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.github.com%2Frepos%2Flm-commons%2Flmccors%2Fproperties%2Fvalues&query=%24%5B%3A1%5D.value&label=Maintenance%20Status)
[![Static Badge](https://img.shields.io/badge/Chat_on-Slack-blue)](https://join.slack.com/t/lm-commons/shared_invite/zt-2gankt2wj-FTS45hp1W~JEj1tWvDsUHQ)

LmcCors is a simple Laminas MVC module that helps you to deal with Cross-Origin Resource Sharing (CORS).

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/03-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ As by default, all the various options are set globally for all routes:
some browsers do not implement this feature correctly.
- `allowed_credentials`: (boolean) If true, it allows the browser to send cookies along with the request.

If you want to configure specific routes, you can add `ZfrCors\Options\CorsOptions::ROUTE_PARAM` to your route configuration:
If you want to configure specific routes, you can add `LmcCors\Options\CorsOptions::ROUTE_PARAM` to your route configuration:

```php
<?php
Expand Down Expand Up @@ -140,4 +140,4 @@ UriFactory::registerScheme('chrome-extension', 'Laminas\Uri\Uri');

to the `onBootstrap()` method in `module/Application/Module.php`.

Registering the `chrome-extension` custom scheme like this allows you to use Google Chrome extensions for testing your API.
Registering the `chrome-extension` custom scheme like this allows you to use Google Chrome extensions for testing your API.

0 comments on commit f06b650

Please sign in to comment.