Skip to content

Commit 3ca8444

Browse files
committed
Fix CORS docs
Fixes #1061
1 parent 807b296 commit 3ca8444

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ npm start
5050
* [Importing your Swagger document](./docs/import.md)
5151
* [Development Guide](./docs/development.md)
5252
* [Configuration Guide](./docs/config.md)
53-
* [Cross Origin Request(CORS) issues](docs/cors.md)
53+
* [Cross Origin Request Sharing(CORS) issues](docs/cors.md)
5454

5555
[Contributing](./CONTRIBUTING.md)
5656

docs/cors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# HTTP access control (CORS) issues
22

3-
Swagger Editor is a web application and by its nature is limited to [HTTP access control policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS). If you can't make calls using **Try this operation** component of the editor it's very likely because the server is not allowing the `swagger.io` domain to make [`XHR`](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) (also known as AJAX) calls to it.
3+
Swagger Editor is a web application and by its nature is limited to [HTTP access control policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS). If you can't make calls using **Try this operation** component of the editor it's very likely because the server is not allowing the `editor.swagger.io` domain to make [`XHR`](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) (also known as AJAX) calls to it.
44

55
## How to fix CORS issues
66

@@ -12,7 +12,7 @@ To enable CORS in your server you need to add following headers to your HTTP res
1212

1313

1414
```
15-
Access-Control-Allow-Origin: http://swagger.io
15+
Access-Control-Allow-Origin: editor.swagger.io
1616
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
1717
```
1818

0 commit comments

Comments
 (0)