1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-11-06 09:09:14 +02:00

Feature: Add REST API

Requested feature for integration, see #15
This commit is contained in:
Ralph Slooten
2022-10-07 19:46:39 +13:00
parent 4a92b99a53
commit 34da0e5042
12 changed files with 695 additions and 352 deletions

View File

@@ -55,6 +55,9 @@ var (
// SMTPAuth used for euthentication
SMTPAuth *htpasswd.File
// ContentSecurityPolicy for HTTP server
ContentSecurityPolicy = "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; frame-src 'self'; img-src * data: blob:; font-src 'self' data:; media-src 'self'; connect-src 'self' ws: wss:; object-src 'none'; base-uri 'self';"
)
// VerifyConfig wil do some basic checking