Skip to content

Core 2.0 CORS api doesn't work in IIS 8.5 #951

@kostyamy

Description

@kostyamy

Issue Title

Having some troubles with hosting .NET Core 2.0 MVC bases api (not views but pure api) on Windows 2012 R2: IIS 8.5 -> Kestrel on dynamic port.

Client is Chrome both kinds - "fetch" and "XHR" but i don't think it makes any difference

  • "same origin" requests work fine
  • locally on my dev machine Surface , Windows 10 same origin and cross-domain (faked via system32\drivers\etc\hosts) work fine even using IIS proxy ->Kestrel chain. Please note not IIS Express but actual IIS 10.
  • 2012 box IIS 8.5 no luck :-( looks like IIS not passing through any cross-domain api calls since even IIS log and tracing show NO activities on "/api//" urls. At the same time STATIC html files are being served just fine but not by Kestrel but pure IIS.

Tried to launch api form CLI: dotnet .<my-api>.dll and looks like it starts just find and hosts on localhost:

Here is my web.config (pretty much out of box)
<system.webServer>




</system.webServer>

i see no system level error in event log, no IIS logs, nothing.
If AspDotNetModule Core fails somehow while starting under IIS then where besides empty system event log i should be looking at ???

If needed I can provide more information.

Thanks in advance,
-K

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions