Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To perform cross-domain requests or to access the necessary headers in the response (for example, due to CORS browser policy restrictions), it is necessary to specify Origin (the domain of the site from which the request is made) in the request header. In this case, the response will contain the Access-Control-Allow-Origin header, which indicates that the resource can be accessed from the specified domain in a cross-site manner. The Access-Control-Allow-Origin: * header indicates that the resource can be accessed from any domain in a cross-site manner.

Using HTTPS

By default, Web server 2.0 uses the HTTP protocol. To transfer data via the HTTPS protocol, it should be first enabled in the settings (see HTTPS settings). The default port for HTTPS is 8443.

If If it is required to send requests to the API via HTTPS and the use of HTTPS is not enabled in the Web-server 2.0 settings (see HTTPS settings), then use port 8443. In this case, requests , but port 8443 is used in the requests, then they will be redirected to HTTP. For example, if you request "https://127.0.0.1:8443/web2/secure/configuration", it will be automatically redirected to "http://127.0.0.1:8085/web2/secure/configuration".