* Checks whether a fully resolved URL points back to this Sim instance. * Used to propagate cycle-detection headers on API blocks that target * the platform's own workflow execution endpoints via absolute URL.
(url: string)
| 1408 | * the platform's own workflow execution endpoints via absolute URL. |
| 1409 | */ |
| 1410 | function isSelfOriginUrl(url: string): boolean { |
| 1411 | return isSameOrigin(url, getBaseUrl()) || isSameOrigin(url, getInternalApiBaseUrl()) |
| 1412 | } |
| 1413 | |
| 1414 | /** |
| 1415 | * Add internal authentication token to headers if running on server |
no test coverage detected