...
TeamCity REST can be configured to allow cross-origin requests using the rest.cors.origins
internal property.
To allow requests from a page loaded from a specific domain:
Add the page address (including the protocol and port , do not use wildcards) to the comma-separated internal property
rest.cors.origins,
e.g.rest.cors.origins=http://myinternalwebpage.org.com:8080,https://myinternalwebpage.org.com
To enable support for a preflight OPTIONS request:
...