CODE Access Rules not working

Hey all.
I have multiple nextcloud servers and now i trying to use CODE-server.

My compose file:
version: '3'
services:
  code:
    image: collabora/code:latest
    restart: always
    container_name: CODE-server
    environment:
      - username=admin
      - password=P@sssword
      - domain=cl.exampe.com
      - extra_params=--o:ssl.enable=true
    cap_add:
      - MKNOD

  

But i can connect to CODE server from cl3.example.com and others. This is huge security risk. How do I set it up so that I can only connect to CODE from a specific server? I tried set domain=cl.exampe.com, domain=cl\.example\.com and still not working.