summaryrefslogtreecommitdiff
path: root/interface-definitions/https.xml.in
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-12-16 08:32:23 -0600
committerJohn Estabrook <jestabro@vyos.io>2021-12-16 12:12:54 -0600
commite671c4b33157836e73a3efc91e691215bc5b144b (patch)
tree974fbd759e67a1dafac2785f7466880a1b1bfe80 /interface-definitions/https.xml.in
parent98396247fcba8b7793e62c483288fdda34c77f3c (diff)
downloadvyos-1x-e671c4b33157836e73a3efc91e691215bc5b144b.tar.gz
vyos-1x-e671c4b33157836e73a3efc91e691215bc5b144b.zip
http-api: T4076: allow setting CORS option 'Access-Control-Allow-Origin'
(cherry picked from commit 55f8ede2d09a9ad095f9ec5c2a729f8c5fb6aafa)
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 58cb70cd7..76ab30b32 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">