{"action":"created","issue":{"url":"https://api.github.com/repos/7leads/ngx-cookie-service/issues/28","repository_url":"https://api.github.com/repos/7leads/ngx-cookie-service","labels_url":"https://api.github.com/repos/7leads/ngx-cookie-service/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/7leads/ngx-cookie-service/issues/28/comments","events_url":"https://api.github.com/repos/7leads/ngx-cookie-service/issues/28/events","html_url":"https://github.com/7leads/ngx-cookie-service/issues/28","id":332343782,"node_id":"MDU6SXNzdWUzMzIzNDM3ODI=","number":28,"title":"Cookies not getting set","user":{"login":"nicolaspierre1990","id":5520669,"node_id":"MDQ6VXNlcjU1MjA2Njk=","avatar_url":"https://avatars1.githubusercontent.com/u/5520669?v=4","gravatar_id":"","url":"https://api.github.com/users/nicolaspierre1990","html_url":"https://github.com/nicolaspierre1990","followers_url":"https://api.github.com/users/nicolaspierre1990/followers","following_url":"https://api.github.com/users/nicolaspierre1990/following{/other_user}","gists_url":"https://api.github.com/users/nicolaspierre1990/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolaspierre1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolaspierre1990/subscriptions","organizations_url":"https://api.github.com/users/nicolaspierre1990/orgs","repos_url":"https://api.github.com/users/nicolaspierre1990/repos","events_url":"https://api.github.com/users/nicolaspierre1990/events{/privacy}","received_events_url":"https://api.github.com/users/nicolaspierre1990/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-14T10:30:09Z","updated_at":"2018-06-25T19:47:00Z","closed_at":null,"author_association":"NONE","body":"## Expected Behavior\r\nCookie being set\r\n\r\n## Actual Behavior\r\nNo cookie being set\r\n\r\n## Steps to Reproduce the Problem\r\nWhat i'm trying to do is to store a JWT token in a cookie using following code.\r\n` setCookie(name: string, value: string, encrypt: boolean, days?: number) {\r\n        let date = null;\r\n        if (days) {\r\n            date = new Date();\r\n            date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));\r\n        }\r\n\r\n        if(encrypt){\r\n            value = btoa(value);\r\n        }\r\n\r\n        this.cookie.set(name, value, date, \"/\", environment.domain, true);\r\n    }`\r\n\r\nbut the cookie is not getting created. I stept into the code of the plugin and no errors happen there.\r\n\r\n## Specifications\r\n\r\n  - Version: Angular 6\r\n  - Host: LocalHost and deployed version"},"comment":{"url":"https://api.github.com/repos/7leads/ngx-cookie-service/issues/comments/400072662","html_url":"https://github.com/7leads/ngx-cookie-service/issues/28#issuecomment-400072662","issue_url":"https://api.github.com/repos/7leads/ngx-cookie-service/issues/28","id":400072662,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDA3MjY2Mg==","user":{"login":"andreas-harmuth","id":22352916,"node_id":"MDQ6VXNlcjIyMzUyOTE2","avatar_url":"https://avatars1.githubusercontent.com/u/22352916?v=4","gravatar_id":"","url":"https://api.github.com/users/andreas-harmuth","html_url":"https://github.com/andreas-harmuth","followers_url":"https://api.github.com/users/andreas-harmuth/followers","following_url":"https://api.github.com/users/andreas-harmuth/following{/other_user}","gists_url":"https://api.github.com/users/andreas-harmuth/gists{/gist_id}","starred_url":"https://api.github.com/users/andreas-harmuth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreas-harmuth/subscriptions","organizations_url":"https://api.github.com/users/andreas-harmuth/orgs","repos_url":"https://api.github.com/users/andreas-harmuth/repos","events_url":"https://api.github.com/users/andreas-harmuth/events{/privacy}","received_events_url":"https://api.github.com/users/andreas-harmuth/received_events","type":"User","site_admin":false},"created_at":"2018-06-25T19:47:00Z","updated_at":"2018-06-25T19:47:00Z","author_association":"NONE","body":"I have the same problem with same specifications."}}
{"actor":{"display_login":"andreas-harmuth"}}