Cookies work locally but dont on server

Hi everyone. I am at loss and I dont know what to do anymore. I have implemented remember me feature and locally it works fine, however, once it is live on infomaniak server I cannot retrieve the cookies for authentication. I am using play framework. On local I have set httpOnly = false and everything works fine however once I do the same on live server the cookie is still unreachable. The difference between application.conf on local and on live server is that we have secure=true for session enabled on live since we are sending https requests to live server. Any help? I am really at loss. Thank you all! I am using MariaDB, Scala and Ionic and I am trying to reach cookie using document.cookie.