Not able to sign in after obtaining ssl certficate and configuring it haproxy

Support intro

Didnt got ant error. I have added ssl certficate but now when I try to sign in after entereing the creditantials it just continues loading and doesnt logs in

Nextcloud version (eg, 18.0.2): 20.0.1.1
Operating system and version (eg, Ubuntu 20.04): ubuntu 18.04
Apache or nginx version (eg, Apache 2.4.25): apache 2.4
PHP version (eg, 7.1): 7.4

The issue you are facing:
not able to login after adding ssl certficate.
I do see lock that shows up in the address bar when I visit the url.

Is this the first time you’ve seen this error? (Y/N):
N

Steps to replicate it:
[configure in haproxy]

  1. in haproxy.cfg
    under global added.
    tune.ssl.default-dh-param 4096
    ssl-default-bind-options no-sslv3 no-tls-tickets
    ssl-default-bind-ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH

then under
frontend ALL
bind *:80
bind *:443 ssl crt /etc/haproxy/certs/combined_site.pem

reload haproxy

navigate and enter creditantials hit login and it get stuck

In the browser inspect console I spotted this

Refused to load http://self-hosted.ddns.com/nextcloud/index.php/apps/files/ because it does not appear in the form-action directive of the Content Security Policy.

maybe thats why what should I need to do this wasnt problem untill I was doing http.