Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

Commit

Permalink
Readme and doc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jsanahuja committed Feb 20, 2019
1 parent 72f6cf9 commit 310d7a5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Instagram Feed without using the instagram API

## Instagram CORS issue is fixed with the last commit.

The way we do this is using the [live demo](https://cors-anywhere.herokuapp.com/) of [this project](https://github.com/Rob--W/cors-anywhere)
The way we do this is using the [live implementation](https://cors-anywhere.herokuapp.com/) of the [cors-anywhere project](https://github.com/Rob--W/cors-anywhere), a nodejs proxy to bypass cors. You can use other proxies or your own implementation using the 'cors_proxy' param. You will find more info in the documentation.
14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,20 @@ <h4>Instagram recently changed their CORS policy</h4>
<div class="instagram_feed info">
<p>This CORS change broke the entire functionality of this library. Fortunately we have been able to get it back to work using a proxy (a <a href="https://cors-anywhere.herokuapp.com/" target="_blank">live implementation</a> of the <a href="https://github.com/Rob--W/cors-anywhere" target="_blank">cors-anywhere project</a>). With that comes the possible need of <strong>setting up your own proxy</strong> for performance reasons. I am not going to explain how can you do that, there is a bunch of information in <a href="https://github.com/Rob--W/cors-anywhere/blob/master/README.md" target="blank">the project readme</a>. You can also use other implementations of this as long as you use them server side. Navigators will block any try of bypassing this in the frontend</p>
</div>
<div class="section_code">
<h4>Code:</h4>
<pre>
&lt;script type="text/javascript" src="jquery.instagramFeed.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
(function($){
$.instagramFeed({
<strong>'cors_proxy': "https://cors-anywhere.herokuapp.com/https://www.instagram.com/",</strong>
...
});
})(jQuery);
&lt;/script&gt;
</pre>
</div>
</div>
<div>
<div class="section_title">
Expand Down

0 comments on commit 310d7a5

Please sign in to comment.