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);
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?
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
Post a Comment