Corrected typo in README

Consequence of error:
- Requests to the CORS anywhere API are prefixed as well, i.e.
  https://cors-anywhere.herokuapp.com/ ->
  https://cors-anywhere.herokuapp.com/https://cors-anywhere.herokuapp.com/

Impact of error:
- Minimal. The functionality of the API is not affected.
This commit is contained in:
Rob Wu
2013-09-03 18:08:00 +02:00
parent 8caf221cc2
commit 4b308db027

View File

@@ -52,8 +52,8 @@ If you want to automatically enable cross-domain requests when needed, use the f
```javascript
(function() {
var cors_api_host = 'cors-anywhere.herokuapp.com/';
var cors_api_url = (window.location.protocol === 'http:' ? 'http://' : 'https://') + cors_api_host;
var cors_api_host = 'cors-anywhere.herokuapp.com';
var cors_api_url = (window.location.protocol === 'http:' ? 'http://' : 'https://') + cors_api_host + '/';
var slice = [].slice;
var origin = window.location.protocol + '//' + window.location.host;
var open = XMLHttpRequest.prototype.open;