Cors: more finegrained allowlist, make it simpler
This commit is contained in:
parent
98ce0408f7
commit
55f3b23eed
7 changed files with 19 additions and 40 deletions
|
|
@ -343,15 +343,6 @@ export const ConfigModal: React.FC<{
|
|||
help="If enabled, only GET requests will be allowed through the API"
|
||||
/>
|
||||
|
||||
<FormCheck
|
||||
label="CORS any"
|
||||
name="http_api.cors_enable_all"
|
||||
checked={config.http_api.cors_enable_all}
|
||||
disabled={config.http_api.disable}
|
||||
onChange={handleToggleChange}
|
||||
help="If enabled, the API will allow Cross Origin requests (including this app)"
|
||||
/>
|
||||
|
||||
<FormInput
|
||||
label="Listen address"
|
||||
inputType="text"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue