()
| 483 | |
| 484 | |
| 485 | def test_csrf_config_defaults(): |
| 486 | app = Dash() |
| 487 | assert app.config.csrf_token_name == "_csrf_token" |
| 488 | assert app.config.csrf_header_name == "X-CSRFToken" |
| 489 | |
| 490 | config = app._config() |
| 491 | assert config["csrf_token_name"] == "_csrf_token" |
| 492 | assert config["csrf_header_name"] == "X-CSRFToken" |
| 493 | |
| 494 | |
| 495 | def test_csrf_config_custom(): |