hcengineering / hcengineering/platform

Images not working after using another workspace in separate tab

Open
#4,479 1 comment 0 reactions 1 assignee Claimed by @aonnikov View on GitHub
bug
Dominant language
TypeScript
Stars
27.7k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

Steps to reproduce:
1. Open workspace ws1
2. Open workspace ws2 in separate tab in browser
3. Try to open some issue with attached image in the first tab

Expected: images are displayed
Actual: images are not displayed, image API returns 500

Explanation: Image API looks for token in `presentation-metadata-Token` cookie in the request. When opened another workspace in separate tab, the cookie had been overridden with ws token and as a result the first tab started using wrong token.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.