trying to fix csrf token failure on iOS