Unable to connect to smb:// samba share from snap packages

I’m unable to access smb:// mounts with my snap. I’m trying to open a document using Libreoffice from snap but I’m unable to open it. I’ve tried to mount the smb:// share to a folder inside /home/*/snap or /media/ but that didn’t help.

I’ve ended up using this command with all these options but it didn’t help:
sudo mount -t cifs -o username=sambauser,vers=1.0,uid=1001,gid=1001,nounix,iocharset=utf8,file_mode=0770,dir_mode=0770 //192.168.5.1/volume/ /home/user/snap/libreoffice/183/testsnapmount/

I’m getting the following errors in my syslog:

Aug 30 12:02:59 house kernel: [ 7539.479260] CIFS: Attempting to mount //192.168.5.1/volume/
Aug 30 12:03:02 house gvfsd-metadata[4159]: g_udev_device_has_property: assertion ‘G_UDEV_IS_DEVICE (device)’ failed
Aug 30 12:03:03 house kernel: [ 7543.382468] CIFS VFS: Error -13 sending data on socket to server
Aug 30 12:03:03 house kernel: [ 7543.382488] audit: type=1400 audit(1598778183.617:294): apparmor=“DENIED” operation=“sendmsg” profile="/snap/core/9804/usr/lib/snapd/snap-confine" pid=20293 comm=“snap-confine” laddr=192.168.5.111 lport=45942 faddr=192.168.5.1 fport=445 family=“inet” sock_type=“stream” protocol=6 requested_mask=“send” denied_mask=“send”
Aug 30 12:03:45 pc kernel: [ 7585.620368] CIFS VFS: Error -13 sending data on socket to server
Aug 30 12:03:45 pc kernel: [ 7585.620392] audit: type=1400 audit(1598778225.853:295): apparmor=“DENIED” operation=“sendmsg” profile="/snap/core/9804/usr/lib/snapd/snap-confine" pid=20399 comm=“snap-confine” laddr=192.168.5.111 lport=45942 faddr=192.168.5.1 fport=445 family=“inet” sock_type=“stream” protocol=6 requested_mask=“send” denied_mask=“send”
Aug 30 12:03:02 pc gvfsd-metadata[4159]: message repeated 3 times: [ g_udev_device_has_property: assertion ‘G_UDEV_IS_DEVICE (device)’ failed]

mounts are working perfectly fines in other applications.