File tree 1 file changed +3
-2
lines changed
tests/Dash.NET.Giraffe.Tests
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ type DashApp with
76
76
clearResponse >=> setStatusCode 500 >=> ( config.ErrorHandler ex)
77
77
78
78
let configureCors ( builder : CorsPolicyBuilder ) =
79
- builder.WithOrigins( sprintf " http://%s :5001 " config.HostName)
79
+ builder.WithOrigins( sprintf " http://%s :%d " config.HostName config.Port )
80
80
.AllowAnyMethod()
81
81
.AllowAnyHeader()
82
82
|> ignore
@@ -86,7 +86,6 @@ type DashApp with
86
86
( match env.EnvironmentName with
87
87
| " Development" -> appBuilder.UseDeveloperExceptionPage()
88
88
| _ -> appBuilder.UseGiraffeErrorHandler( errorHandler))
89
- .UseHttpsRedirection()
90
89
.UseCors( configureCors)
91
90
.UseStaticFiles()
92
91
.UseGiraffe( DashApp.toHttpHandler loadedApp)
@@ -136,6 +135,8 @@ let generateLayoutEndpointTest name message expected (layout:DashComponent) =
136
135
137
136
let testConfig = {
138
137
HostName = " localhost"
138
+ IpAddress = " 127.0.0.1"
139
+ Port = 5000
139
140
LogLevel = LogLevel.Debug
140
141
ErrorHandler = ( fun ex -> text ex.Message)
141
142
}
You can’t perform that action at this time.
0 commit comments