Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb29499b

Browse files
committed
Support CORS behaviour
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent701d7c8 commitb29499b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

‎provider/app.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,25 @@ func appResource() *schema.Resource {
162162
returndiag.Errorf("invalid app share %q, must be one of\"owner\",\"authenticated\",\"public\"",valStr)
163163
},
164164
},
165+
"cors_behavior": {
166+
Type:schema.TypeString,
167+
Default:"simple",
168+
ForceNew:true,
169+
Optional:true,
170+
ValidateDiagFunc:func(valinterface{},c cty.Path) diag.Diagnostics {
171+
valStr,ok:=val.(string)
172+
if!ok {
173+
returndiag.Errorf("expected string, got %T",val)
174+
}
175+
176+
switchvalStr {
177+
case"simple","passthru":
178+
returnnil
179+
}
180+
181+
returndiag.Errorf("invalid app CORS behavior %q, must be one of\"simple\",\"passthru\"",valStr)
182+
},
183+
},
165184
"url": {
166185
Type:schema.TypeString,
167186
Description:"An external url if `external=true` or a URL to be proxied to from inside the workspace. "+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp