Skip to content

[SOLVED] What is the proper way to add Shield to my App #441

Answered by datamweb
foxbille asked this question in Q&A
Discussion options

You must be logged in to vote

doesn't send the login page, provides home page
Want did I forgot to add to link and use Shield protection services ?
That's all you have to do.

$globals in \App\Config\filters.php

    /**
     * List of filter aliases that are always
     * applied before and after every request.
     *
     * @var array
     */
    public $globals = [
        'before' => [
            // 'honeypot',
            // 'csrf',
            // 'invalidchars',
              'session' => ['except' => ['login*', 'register', 'auth/a/*']],
        ],
        'after' => [
            'toolbar',
            // 'honeypot',
            // 'secureheaders',
        ],
    ];

Now if you see http://localhost:8080/ you sh…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kenjis
Comment options

@datamweb
Comment options

@foxbille
Comment options

Answer selected by datamweb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants