We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentf871a43 commitdbc504fCopy full SHA for dbc504f
provider/app.go
@@ -258,6 +258,27 @@ func appResource() *schema.Resource {
258
returndiag.Errorf(`invalid "coder_app" open_in value, must be one of "tab", "slim-window": %q`,valStr)
259
},
260
261
+"cors_behavior": {
262
+Type:schema.TypeString,
263
+Description:"Determines the behavior of CORS headers for the app. Simple will allow apps to "+
264
+"communicate with other workspaces owned by the same user.",
265
+ForceNew:true,
266
+Optional:true,
267
+Default:"simple",
268
+ValidateDiagFunc:func(valinterface{},c cty.Path) diag.Diagnostics {
269
+valStr,ok:=val.(string)
270
+if!ok {
271
+returndiag.Errorf("expected string, got %T",val)
272
+}
273
+
274
+switchvalStr {
275
+case"passthru","simple":
276
+returnnil
277
278
279
+returndiag.Errorf(`invalid "cors_behavior" open_in value, must be one of "passthru", "simple": %q`,valStr)
280
+},
281
282
283
}
284