mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +03:00
Same-origin policy violation notes
This commit is contained in:
parent
9b544ef535
commit
4be579f7a2
@ -94,7 +94,9 @@ nelmio_api_swagger:
|
|||||||
prefix: /api-docs
|
prefix: /api-docs
|
||||||
```
|
```
|
||||||
|
|
||||||
Et voila!, simply specify http://yourdomain.com/api-docs in your Swagger client and you are good to go.
|
Et voila!, simply specify http://yourdomain.com/api-docs in your `swagger-ui` instance and you are good to go.
|
||||||
|
|
||||||
|
__Note__: If your `swagger-ui` instance does not live under the same domain, you will probably encounter some problems related to same-origin policy violations. [NelmioCorsBundle](https://github.com/nelmio/NelmioCorsBundle) can solve this problem for you. Read through how to allow cross-site requests for the `/api-docs/*` pages.
|
||||||
|
|
||||||
### Dumping the Swagger-compliant JSON API definitions
|
### Dumping the Swagger-compliant JSON API definitions
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user