Orchestrator WebConsole 2022 cannot be launched via FQDN, but with localhost or hostname

Stefan Horz 3,461 Reputation points
2023-04-13T14:02:16.75+00:00
Hi,
I can reach the WebConsole from SC 2022 Orchestrator with the hostname or localhost (http://sco2022:82  or http://localhost:82). When I try to reach it with FQDN (http://sco2022.stefan.local:82) I get "Uh, oh! Trouble connecting to WebAPI [status 0]".

"Update Rollup 1 for Microsoft System Center 2022 - Orchestrator Web Console (x64)" and  "KB5021420) and Hotfix for Microsoft System Center 2022 - Orchestrator Web Console (post UR1) (KB5024318)" are installed.

I also added

        <add allowCredentials="true" maxAge="7200" origin="http://SCO2022.stefan.local:82">
          <allowMethods>
            <add method="GET"/>
            <add method="PUT"/>
            <add method="POST"/>
            <add method="PATCH"/>
            <add method="DELETE"/>
          </allowMethods>
          <allowHeaders allowAllRequestedHeaders="true"/>
        </add>

in "C:\Program Files\Microsoft System Center\Orchestrator\WebApi\web.config".

And I updated the FQDN to ""webUri": http://sco2022.stefan.local:81" in "C:\Program Files\Microsoft System Center\Orchestrator\WebConsole\assets\configuration.json" .

Using Developer Console in Edge I get with http://sco2022.stefan.local:82:
Access to XMLHttpRequest at 'http://sco2022:81/api/login' from origin 'http://sco2022.stefan.local:82' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Has anybody any hint to fix this?

Regards,
Stefan

System Center Orchestrator
System Center Orchestrator
A family of System Center products that provide an automation platform for orchestrating and integrating both Microsoft and non-Microsoft IT tools.
214 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ananya Bahadur 76 Reputation points Microsoft Employee
    2023-04-30T19:03:34.31+00:00

    The CORS error indicates that the Origin header set by the browser CORS policy is http://sco2022.stefan.local:82

    Your WebAPI's IIS CORS config specifies http://SCO2022.stefan.local:82 as the origin.

    While we (and most computer systems) know that domains are case-insensitive, IIS CORS requires an exact match between the configured domain and the request's Origin​. Try lowercasing the domain in the WebAPI config.


1 additional answer

Sort by: Most helpful
  1. Stefan Horz 3,461 Reputation points
    2023-04-13T14:34:57.49+00:00

    Not sure what above happend. Here is again my question for a better readability: I can reach the WebConsole from SC 2022 Orchestrator with the hostname or localhost (http://sco2022:82 or http://localhost:82). When I try to reach it with FQDN (http://sco2022.stefan.local:82) I get “Uh, oh! Trouble connecting to WebAPI [status 0]". SCO_WEB-hostname

    SCO_WEB-fqdn

    "Update Rollup 1 for Microsoft System Center 2022 - Orchestrator Web Console (x64)" and "KB5021420) and Hotfix for Microsoft System Center 2022 - Orchestrator Web Console (post UR1) (KB5024318)" are installed. I also added

            <add allowCredentials="true" maxAge="7200" origin="http://SCO2022.stefan.local:82">
              <allowMethods>
                <add method="GET"/>
                <add method="PUT"/>
                <add method="POST"/>
                <add method="PATCH"/>
                <add method="DELETE"/>
              </allowMethods>
              <allowHeaders allowAllRequestedHeaders="true"/>
            </add>
    
    

    in "C:\Program Files\Microsoft System Center\Orchestrator\WebApi\web.config". And I updated the FQDN to "*"webUri": http://sco2022.stefan.local:81*" in "C:\Program Files\Microsoft System Center\Orchestrator\WebConsole\assets\configuration.json" . Using Developer Console in Edge I get with http://sco2022.stefan.local:82: Access to XMLHttpRequest at 'http://sco2022:81/api/login' from origin 'http://sco2022.stefan.local:82' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource**.** SCO_WEB-fqdn_Ctrl-Shift-I

    Has anybody any hint to fix this? Regards, Stefan

    1 person found this answer helpful.
    0 comments No comments