Skip to content

konfigurasiΒ #9

@DwiDevelopes

Description

@DwiDevelopes
  1. Konfigurasi .streamlit/config.toml:

    [server]
    enableCORS = false
    enableXsrfProtection = true
    headless = true
    port = 8501
    
  2. STREAMLIT_SECRET_KEY=xxxxxx
    ADMIN_PASSWORD=xxxxxx

  3. Implementasi login sederhana (contoh): import streamlit_authenticator as stauth
    names = ["Admin"]
    usernames = ["admin"]
    passwords = ["12345"]
    hashed_pw = stauth.Hasher(passwords).generate()

  4. Perkuat HTTP header:Tambahkan Strict-Transport-Security.

Gunakan X-Frame-Options: DENY.

Gunakan Content-Security-Policy untuk mencegah XSS.

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions