mirror of
https://github.com/d0zingcat/cors-anywhere.git
synced 2026-05-19 07:26:47 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user