1 頁 (共 1 頁)

API remove CSRF

發表於 : 2017-07-11 17:03:11
yehlu

代碼: 選擇全部

<?php

namespace App\Http\Middleware;

use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;

App\Http\Middleware\VerifyCsrfToken.php
class VerifyCsrfToken extends BaseVerifier
{
    /**
     * The URIs that should be excluded from CSRF verification.
     *
     * @var array
     */
    protected $except = [
        //
        '/photorotate/*',
        '/exif/*',
        '/resize/*',
        'alipaywebNotify',
        'alipaywebReturn',
        '/wechatwebReturn/*',
        '/wechatBack/*',
        '/govlntest/*',
    ];
}