docs: fix typos and update https references (#8154)
Co-authored-by: Tim Lai <timothy.lai@smartbear.com>
This commit is contained in:
committed by
GitHub
parent
7e65155a7b
commit
9891d97201
@@ -369,7 +369,7 @@ Example:
|
||||
|
||||
```sh
|
||||
SUPPORTED_SUBMIT_METHODS="[\"get\", \"post\"]"
|
||||
URLS="[ { url: \"http://petstore.swagger.io/v2/swagger.json\", name: \"Petstore\" } ]"
|
||||
URLS="[ { url: \"https://petstore.swagger.io/v2/swagger.json\", name: \"Petstore\" } ]"
|
||||
```
|
||||
|
||||
##### Object variables
|
||||
@@ -387,5 +387,5 @@ SPEC="{ \"openapi\": \"3.0.0\" }"
|
||||
#### .env file example encoding
|
||||
```sh
|
||||
SUPPORTED_SUBMIT_METHODS=['get', 'post']
|
||||
URLS=[ { url: 'http://petstore.swagger.io/v2/swagger.json', name: 'Petstore' } ]
|
||||
URLS=[ { url: 'https://petstore.swagger.io/v2/swagger.json', name: 'Petstore' } ]
|
||||
```
|
||||
|
||||
@@ -41,11 +41,11 @@ XMLHttpRequest cannot load http://sad.server.com/v2/api-docs. No 'Access-Control
|
||||
|
||||
Swagger UI cannot easily show this error state.
|
||||
|
||||
- Use the http://www.test-cors.org website to verify CORS support. Keep in mind this will show a successful result even if `Access-Control-Allow-Headers` is not available, which is still required for Swagger UI to function properly.
|
||||
- Use the https://www.test-cors.org website to verify CORS support. Keep in mind this will show a successful result even if `Access-Control-Allow-Headers` is not available, which is still required for Swagger UI to function properly.
|
||||
|
||||
### Enabling CORS
|
||||
|
||||
The method of enabling CORS depends on the server and/or framework you use to host your application. http://enable-cors.org provides information on how to enable CORS in some common web servers.
|
||||
The method of enabling CORS depends on the server and/or framework you use to host your application. https://enable-cors.org provides information on how to enable CORS in some common web servers.
|
||||
|
||||
Other servers/frameworks may provide you information on how to enable it specifically in their use case.
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ If you've determined this is the version you have, to find the exact version:
|
||||
/**
|
||||
* swagger-ui - Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API
|
||||
* @version v2.2.9
|
||||
* @link http://swagger.io
|
||||
* @link https://swagger.io
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user