(app: ExternalWorkspaceApp)
| 163 | }; |
| 164 | |
| 165 | export const needsSessionToken = (app: ExternalWorkspaceApp) => { |
| 166 | // HTTP links should never need the session token, since Cookies |
| 167 | // handle sharing it when you access the Coder Dashboard. We should |
| 168 | // never be forwarding the bare session token to other domains! |
| 169 | const isHttp = app.url.startsWith("http"); |
| 170 | const requiresSessionToken = app.url.includes(SESSION_TOKEN_PLACEHOLDER); |
| 171 | return requiresSessionToken && !isHttp; |
| 172 | }; |
no outgoing calls
no test coverage detected