PhantomJS dropping cookies on 302 redirect

1.1k Views Asked by At

I'm using the SpookyJS node library to walk through a web flow. Some of the cookies that I'm supposed to have aren't being set on a 302 redirect. Is there any knowledge as to whether this is a PhantomJS or SpookyJS problem?

1

There are 1 best solutions below

0
On

This is a PhantomJS problem. Apparently it doesn't handle redirects very well. https://github.com/ariya/phantomjs/issues/10389

I've been using casper for my project, so when I ran into this issue I had to use slimerjs as my engine to make things work.