is-cookie-http-only
Version:
Checks whether cookie is HTTP only
2 lines (1 loc) • 386 B
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("js-cookie")):"function"==typeof define&&define.amd?define(["js-cookie"],t):e.isCookieHttpOnly=t(e.Cookies)}(this,function(e){"use strict";return e=e&&e.hasOwnProperty("default")?e.default:e,function(t){if(e.get(t))return!1;e.set(t,"test");const o=e.get("test");return e.remove("test"),!o}});