18 行
487B

  1. <?php
  2. /**
  3. * Application configuration shared by all applications functional tests
  4. */
  5. return [
  6. 'components' => [
  7. 'request' => [
  8. // it's not recommended to run functional tests with CSRF validation enabled
  9. 'enableCsrfValidation' => false,
  10. // but if you absolutely need it set cookie domain to localhost
  11. /*
  12. 'csrfCookie' => [
  13. 'domain' => 'localhost',
  14. ],
  15. */
  16. ],
  17. ],
  18. ];