BCJTI / ng2-cookies

Simple library to deal with cookies in Angular2
64 stars 31 forks source link

not working in safari #48

Closed stephenlane closed 7 years ago

stephenlane commented 7 years ago

Hi there,

This does not seem to work in safari.

Bigous commented 7 years ago

Can you post your environment configuration and more details on what doesn't work?

Did you check if cookies are not blocked in your safari configuration?

try to open your safari console (in the web tools development) and type on console:

document.cookie
document.cookie='wow=it works; expires=May 31 2018 23:59:59 GMT+09:00; path=/'
document.cookie

To see if the cookie browser api is working as expected... it should show the same string appended by '; wow=it works'

stephenlane commented 7 years ago

I ended up having to use document.cookie instead of the set function as it was not working on safari, both mac and ipad.

Bigous commented 7 years ago

@carcamano can you get this? I can't test any code on mac or ipad - sorry.

carcamano commented 7 years ago

@Bigous Sorry, I can't too :(

Anyway I tested it on Safari for Windows and it works fine.

stephenlane commented 7 years ago

i had the issue with both chrome and safari on ipad. Had no issue with chrome on mac

Bigous commented 7 years ago

Tested on safari on windows and linux and worked for me too. I'm closing it. If someone else is having problem, please post it here so we can trak with someon that uses macOS.

esoyke commented 6 years ago

I am also experiencing this, ended up falling back to localstorage if cookie fails.

Safari 11.1, Mac OSX High Sierra 10.13.4 ng2-cookies: ^1.0.12

Bigous commented 6 years ago

@sephh My brother :D can you get this one?