summaryrefslogtreecommitdiff
path: root/interface-definitions/https.xml.in
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-12-15 14:45:25 -0600
committerJohn Estabrook <jestabro@vyos.io>2021-12-15 15:35:39 -0600
commit55f8ede2d09a9ad095f9ec5c2a729f8c5fb6aafa (patch)
tree6d84d2b3f1ace7e43bca200be66226ebf973dd04 /interface-definitions/https.xml.in
parent25d95b1f73f3e5e0fd2dfc9199f46d808c68af43 (diff)
downloadvyos-1x-55f8ede2d09a9ad095f9ec5c2a729f8c5fb6aafa.tar.gz
vyos-1x-55f8ede2d09a9ad095f9ec5c2a729f8c5fb6aafa.zip
http-api: T4076: allow setting CORS option 'Access-Control-Allow-Origin'
Diffstat (limited to 'interface-definitions/https.xml.in')
-rw-r--r--interface-definitions/https.xml.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/interface-definitions/https.xml.in b/interface-definitions/https.xml.in
index 33e43a432..6fea2f1f6 100644
--- a/interface-definitions/https.xml.in
+++ b/interface-definitions/https.xml.in
@@ -107,6 +107,19 @@
<valueless/>
</properties>
</leafNode>
+ <node name="cors">
+ <properties>
+ <help>Set CORS options</help>
+ </properties>
+ <children>
+ <leafNode name="allow-origin">
+ <properties>
+ <help>Allow resource request from origin</help>
+ <multi/>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
</children>
</node>
<node name="api-restrict">