Unsuccessful login - CorsAllowed

When Web Panel logs into B3 system, the B3 server checks the web page that wants to log in and allows it only if the web page URL is one of the URLs defined in B3 server web.config file in “CorsAllowed” key in <appSettings> section.

The default “CorsAllowed” key value is:

<add key="CorsAllowed" value="http://localhost,http://coolguard.se,http://iculicense.com"/>

The standard Web Panel logs from http://localhost.

If this address is different from addresses defined in “CorsAllowed” key then the Web Panel will not be able to log in and “The user name or password is incorrect” message will be displayed.

This situation may occur if the Web Panel is run on IIS server instead of Raspberry Pi.

In the example below the Web Panel site works on port 81.

Assuming you want to log in from the same PC you will enter http://localhost:81 into a web browser. The same address must be added to the “CorsAllowed” key on B3 system as shown below.

<add key="CorsAllowed" value="http://localhost,http://coolguard.se,http://iculicense.com,http://localhost:81"/>

Last updated