This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
If you are attempting to call an AJAX API, via GET which responds: | |
No 'Access-Control-Allow-Origin' header is present on the requested resource. | |
You can modify the way you query it to go through a server which will add the header. | |
Basically, you add the URL you want (with query string parameters) at the end of | |
'https://cors-anywhere.herokuapp.com/' | |
, and ensure that your ajax call is done with some additional options as shown below | |
See CORS-Anywhere documentation here for more: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
 | |
 | |
{username} — ваш ник на ГитХабе; | |
{repository} — репозиторий где хранятся картинки; | |
{branch} — ветка репозитория; | |
{path} — путь к месту нахождения картинки. |