javascript - Reddit API: User clicks through to original article instead of Reddit link. Does this violate Same Origin Policy? -


i have feed-reader displays list of articles reddit api.

http://codepen.io/teeke/pen/wpqgap

when user hovers on picture, clicking on text take them original reddit link.

links loaded line of code:

let link    = $('<a>').addclass('post').attr({target: '_blank', href: permalink}).appendto(bar).text(posts[i].data.title); 
  1. is possible retrieve original article link reddit api? i.e user goes through original article, without stopping on reddit? if so, how? or user have click through subreddit?

  2. would linking original article violate same origin policy?

security on web depends on variety of mechanisms, including underlying concept of trust known same-origin policy. states if content 1 site (such https://mybank.example1.com) granted permission access resources on system, content site share these permissions, while content site (https://othersite.example2.com) have granted permissions separately.[2]


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -