Skip to content

Commit

Permalink
fix(Cookies storage): Set cookies to main domain
Browse files Browse the repository at this point in the history
Now cookie set automaticali to main domain

ISSUES-3
  • Loading branch information
CrazySquirrel committed Oct 26, 2017
1 parent ad2f0f3 commit 48ffaf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Storages/Cookies.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Storages/Cookies.ts
Expand Up @@ -51,7 +51,7 @@ export default class Cookies implements IStorage {
value: string,
expires: number = 30,
path: string = "/",
domain: string = location.hostname,
domain: string = "." + location.hostname.split(".").slice(-2).join("."),
secure: boolean = (location.protocol === "https:")): boolean {
try {
/**
Expand Down

0 comments on commit 48ffaf6

Please sign in to comment.