donejs / done-ssr

Server Side Rendering for DoneJS
https://www.npmjs.com/package/done-ssr
MIT License
23 stars 11 forks source link

Cookie SSR Regex problem #654

Closed MarcGodard closed 5 years ago

MarcGodard commented 5 years ago

You should change line 11 of xhr-cookie.js to the following var cookieReg = RegExp(options.auth.cookie + “=(.+?)($|;)“);

The current code only works if the cookie is not last.

matthewp commented 5 years ago

PR would be super helpful here

MarcGodard commented 5 years ago

PR Ready

matthewp commented 5 years ago

thanks! closed by #655