server/src/app/Http/Middleware/VerifyCsrfToken.php
author ymh <ymh.work@gmail.com>
Thu, 20 Oct 2016 17:27:36 +0200
changeset 377 52169c718513
parent 139 8d688175513a
permissions -rw-r--r--
make all stats view use elasticsearch. Make sure that the document discourse types are taken form the predefined list
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
00e2916104fe Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents: 1
diff changeset
     1
<?php
00e2916104fe Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents: 1
diff changeset
     2
00e2916104fe Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents: 1
diff changeset
     3
namespace CorpusParole\Http\Middleware;
1
01a844d292ac dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
01a844d292ac dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
01a844d292ac dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
2
00e2916104fe Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents: 1
diff changeset
     7
class VerifyCsrfToken extends BaseVerifier
00e2916104fe Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents: 1
diff changeset
     8
{
00e2916104fe Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents: 1
diff changeset
     9
    /**
28
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    10
     * The URIs that should be excluded from CSRF verification.
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    11
     *
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    12
     * @var array
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    13
     */
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    14
    protected $except = [
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    15
        'api/*',
139
8d688175513a add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents: 28
diff changeset
    16
        'proxy/*'
28
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    17
    ];
1
01a844d292ac dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
}