Enable cors-proxy

This commit is contained in:
Roman Hotsiy 2016-11-29 17:54:21 +02:00
parent a8285b2652
commit 7e7db9f36e
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -7,7 +7,7 @@
var url = window.location.search.match(/url=([^&]+)/);
if (url && url.length > 1) {
url = decodeURIComponent(url[1]);
document.getElementsByTagName('redoc')[0].setAttribute('spec-url', url);
document.getElementsByTagName('redoc')[0].setAttribute('spec-url', '\\\\cors.apis.guru/' + url);
}
function updateQueryStringParameter(uri, key, value) {