Merge pull request #1361 from jonnybarnes/develop
MTM Fix some endpoints
This commit is contained in:
commit
c0802f8792
1 changed files with 7 additions and 0 deletions
|
@ -12,6 +12,13 @@ return Application::configure(basePath: dirname(__DIR__))
|
||||||
health: '/up',
|
health: '/up',
|
||||||
)
|
)
|
||||||
->withMiddleware(function (Middleware $middleware) {
|
->withMiddleware(function (Middleware $middleware) {
|
||||||
|
$middleware->validateCsrfTokens(except: [
|
||||||
|
'api/token',
|
||||||
|
'api/post',
|
||||||
|
'api/media',
|
||||||
|
'micropub/places',
|
||||||
|
'webmention',
|
||||||
|
]);
|
||||||
$middleware->append(CSPHeader::class);
|
$middleware->append(CSPHeader::class);
|
||||||
})
|
})
|
||||||
->withExceptions(function (Exceptions $exceptions) {
|
->withExceptions(function (Exceptions $exceptions) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue