Password not working after update /CRSF protection error

The solution is to add to seahub_settings.py (as it is said in that post )

CSRF_TRUSTED_ORIGINS = ['https://example.ddns.net']

could it be because i chose https?