diff --git a/cookies.coffee b/cookies.coffee index 017b444..9c684a1 100755 --- a/cookies.coffee +++ b/cookies.coffee @@ -282,7 +282,7 @@ class __cookies ### send: -> if @runOnServer - HTTP.get '/___cookie___/set', () -> return + HTTP.get (__meteor_runtime_config__.ROOT_URL_PATH_PREFIX or '') + '/___cookie___/set', () -> return else throw new Meteor.Error '400', 'Can\'t send cookies on server when `runOnServer` is false.' @@ -333,4 +333,4 @@ class Cookies extends __cookies self.handler and self.handler _cookie next() -Cookies.isLoadedOnServer = false if Meteor.isServer \ No newline at end of file +Cookies.isLoadedOnServer = false if Meteor.isServer diff --git a/package.js b/package.js index e438e74..363d585 100755 --- a/package.js +++ b/package.js @@ -1,6 +1,6 @@ Package.describe({ name: 'ostrio:cookies', - version: '2.0.1', + version: '2.0.2', summary: 'Isomorphic boilerplate Server and Client cookie functions', git: 'https://github.com/VeliovGroup/Meteor-Cookies', documentation: 'README.md'