taskany-inc / issues

The simplest task manager ever. Love planning again 🐑
http://taskany.org
MIT License
15 stars 8 forks source link

Markdown: dynamic links preview #435

Open awinogradov opened 1 year ago

awinogradov commented 1 year ago
rehypeReactOptions={{
    components: {
      p: (props) => <p className="custom-paragraph" {...props} />,
    },
  }}
asabotovich commented 1 year ago

At this moment we have a few problems to get JIRA meta-information to render preview:

  1. Simple GET request to https://jira.atlassian.com/browse/TICKET-1 has CORs error for getting from client. If we are going to send request from server-side proxy, we have an authorization problem (third side cookies access problem).

  2. JIRA has the rest api https://jira.atlassian.com/rest/api/latest/issue/TICKET-1 which should return all information we need, but we have the same problem with CORs and cookies.

  3. Some iframe magic: it's blocked by CSP policy. Refused to frame 'https://jira.sberdevices.ru/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'".

For current moment we decided to take a break to generate better solution.