File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,11 @@ httpAdminMiddleware
6868 // Be sure to call next() if the request should be passed on
6969 }
7070
71+ httpAdminCookieOptions
72+ : when Admin Autentication is enabled, this can be used to customise the options used
73+ when setting the session cookie used as part of the OAuth authentication flow.
74+ The available options are documented [ here] ( https://www.npmjs.com/package/cookie#options-1 ) .
75+
7176httpNodeRoot
7277: the root url for nodes that provide HTTP endpoints. If set to ` false ` , all node-based HTTP endpoints are disabled. Default: ` / `
7378
@@ -93,25 +98,30 @@ httpStatic
9398
9499 This property can also be set as an Array to support multiple static directories, each
95100 with its own set of options. The options include the path to the local directory to serve
96- content from, the root url to serve them from and an optional custom middleware function.
101+ content from, the root url to serve them from, an optional custom middleware function and an
102+ optional CORS configuration.
97103
98104 For example:
99105
100106 httpStatic: [
101107 {
102108 path: '/opt/static/',
103109 root: '/private/',
104- middleware: myCustomHttpMiddleware
110+ middleware: myCustomHttpMiddleware,
111+ cors: {
112+
113+ }
105114 }
106115 ]
107116
108117 * Standalone only* .
109118
110-
111-
112119httpStaticAuth
113120: enabled HTTP Basic Authentication on the static content. See ` httpAdminAuth ` for format.
114121
122+ httpStaticCors
123+ : enables cross-origin resource sharing for the httpStatic endpoints as defined [ here] ( https://github.com/troygoode/node-cors#configuration-options )
124+
115125httpNodeCors
116126: enables cross-origin resource sharing for the nodes that provide HTTP endpoints,
117127 as defined [ here] ( https://github.com/troygoode/node-cors#configuration-options )
You can’t perform that action at this time.
0 commit comments