From 4b308db02783c01ce41845c6673df7663f49fc0f Mon Sep 17 00:00:00 2001 From: Rob Wu Date: Tue, 3 Sep 2013 18:08:00 +0200 Subject: [PATCH] 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. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e7f3634..b536883 100644 --- a/README.md +++ b/README.md @@ -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;