ikorgik / youtrack-timer

1 stars 1 forks source link

Self-hosted youtrack instances CORS error #1

Open Fomoire opened 9 months ago

Fomoire commented 9 months ago

This extension doesn't work with self-hosted instances. Please replace in manifest.json "matches": ["https://*.youtrack.cloud/*"] with "matches": ["https://*/*"]. Otherwise, it throws a CORS exception and can't add a button to tasks.

aleksey-ru52 commented 1 month ago

One can do a trick to make things work

  1. find out where plugin is installed
  2. make copy 1.0.7_0 (at time of writing this) to 1.0.7_0-dev
  3. edit manifest inside new dir to match above comment "matches": [ "https:///" ]
  4. enable "Developer mode" in plugins
  5. push "Load unpacked" and point to 1.0.7_0-dev dir
  6. go to plugin settings and fill it (make sure you don't set a trailing slash at the URL)
  7. "save"!
  8. profit :-)