1

We are loading JavaScript URL from CDN which having example domain name *cookietest.com, we want to access same domain cookies inside JS.

Example -

HTML page is hosted on www.publisher.com and inside that we have below code snippet.

<!doctype html>
<html>
<head>
    <title>Cookie Test</title>
</head>
    </title>
</head>
<body>
    <script type="text/javascript" src='www.cookietest.com/get.js'></script>
</body>
</html>

We want to access the cookies at cookietest.com inside get.js, is there is any way to achieve this?

RockStar
  • 1,304
  • 2
  • 13
  • 35
  • It is not possible to share.. Check this.. https://stackoverflow.com/questions/3342140/cross-domain-cookies – Pavan Andhukuri Oct 25 '18 at 07:30
  • @PavanAndhukuri Its not cross domain, same cookietest.com JS script need to fetch there own cookietest.com domains cookies itself. – RockStar Oct 25 '18 at 07:46

0 Answers0