Closed Glowiksi closed 10 months ago
This is resolved by https://github.com/Azure/azure-functions-dotnet-worker/pull/2149 and is in the latest Worker nuget packages
@slaneyrw Thanks for the reply and the work you have provided. It did fix my issue.
For future search: when running into this issue also make sure to remove the "Server = ..GetHostNames()" this will lead to other routing issues.
Describe the issue Hello,
I currently have an azure function isolated-worker running on my local machine and after setting up swagger it takes another port as the default one. Therefore it can not load the swagger.json nor call the api because of CORS and wrong setup.
Setup: MacBook Pro M2 or Windows 10 (Dell) Jetbrains Rider .NET 8 Microsoft.Azure.Functions.Worker.Extensions.OpenApi 1.5.1
To Reproduce Steps to reproduce the behavior:
Expected behavior I expect to set the baseurl in the IOpenApiConfigurationOptions. The attribute "Servers" has no outcome to the app.
Screenshots