alfhen / vue-cookie

A Vue.js plugin for manipulating cookies
MIT License
821 stars 72 forks source link

+set domain #2

Closed masudo closed 8 years ago

alfhen commented 8 years ago

Hey @masudo, It would make sense to add the option to set the cookie domain. However I am not sure that I like having to set it every time I create a cookie. How about we add a config setting instead, and then we can set the domain for cookies in general. Something like:

var VueCookie = require('vue-cookie');
VueCookie.config.cookie-domain = 'your apps cookie domain';
alfhen commented 8 years ago

Hey @masudo thanks for submitting your pr, however I went with a different solution.. but you can set the cookie domain in the latest Release: https://github.com/alfhen/vue-cookie/releases/tag/v1.1.0 Check the Readme for further info