Commit 6cc8eada320b9fb716da67f51939d3e94c024852
Committed by
Andrew Shvayka
1 parent
2211cff1
base url improvements
Showing
2 changed files
with
6 additions
and
0 deletions
@@ -35,6 +35,10 @@ | @@ -35,6 +35,10 @@ | ||
35 | {{ 'admin.base-url-required' | translate }} | 35 | {{ 'admin.base-url-required' | translate }} |
36 | </mat-error> | 36 | </mat-error> |
37 | </mat-form-field> | 37 | </mat-form-field> |
38 | + <tb-checkbox formControlName="prohibitDifferentUrl" style="display: block; padding-bottom: 16px;"> | ||
39 | + {{ 'admin.prohibit-different-url' | translate }} | ||
40 | + </tb-checkbox> | ||
41 | + <div class="tb-hint" translate>admin.prohibit-different-url-hint</div> | ||
38 | <div fxLayout="row" fxLayoutAlign="end center" style="width: 100%;" class="layout-wrap"> | 42 | <div fxLayout="row" fxLayoutAlign="end center" style="width: 100%;" class="layout-wrap"> |
39 | <button mat-button mat-raised-button color="primary" [disabled]="(isLoading$ | async) || generalSettings.invalid || !generalSettings.dirty" | 43 | <button mat-button mat-raised-button color="primary" [disabled]="(isLoading$ | async) || generalSettings.invalid || !generalSettings.dirty" |
40 | type="submit">{{'action.save' | translate}} | 44 | type="submit">{{'action.save' | translate}} |
@@ -80,6 +80,8 @@ | @@ -80,6 +80,8 @@ | ||
80 | "test-mail-sent": "Test mail was successfully sent!", | 80 | "test-mail-sent": "Test mail was successfully sent!", |
81 | "base-url": "Base URL", | 81 | "base-url": "Base URL", |
82 | "base-url-required": "Base URL is required.", | 82 | "base-url-required": "Base URL is required.", |
83 | + "prohibit-different-url": "Prohibit to use hostname from the client request headers", | ||
84 | + "prohibit-different-url-hint": "This setting should be enabled for production environments. May cause security issues when disabled", | ||
83 | "mail-from": "Mail From", | 85 | "mail-from": "Mail From", |
84 | "mail-from-required": "Mail From is required.", | 86 | "mail-from-required": "Mail From is required.", |
85 | "smtp-protocol": "SMTP protocol", | 87 | "smtp-protocol": "SMTP protocol", |