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 | 35 | {{ 'admin.base-url-required' | translate }} |
36 | 36 | </mat-error> |
37 | 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 | 42 | <div fxLayout="row" fxLayoutAlign="end center" style="width: 100%;" class="layout-wrap"> |
39 | 43 | <button mat-button mat-raised-button color="primary" [disabled]="(isLoading$ | async) || generalSettings.invalid || !generalSettings.dirty" |
40 | 44 | type="submit">{{'action.save' | translate}} | ... | ... |
... | ... | @@ -80,6 +80,8 @@ |
80 | 80 | "test-mail-sent": "Test mail was successfully sent!", |
81 | 81 | "base-url": "Base URL", |
82 | 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 | 85 | "mail-from": "Mail From", |
84 | 86 | "mail-from-required": "Mail From is required.", |
85 | 87 | "smtp-protocol": "SMTP protocol", | ... | ... |