Yaowenjie / travis-github-chrome-extension

This is chrome extension for github page showing travis-ci pipeline status
https://yaowenjie.github.io/%E7%BC%96%E7%A8%8B%E7%9B%B8%E5%85%B3/travis-github-chrome-extension
26 stars 5 forks source link

CSP error log in browser console when switch tabs in github #21

Closed Yaowenjie closed 7 years ago

Yaowenjie commented 7 years ago

As below screenshot saying:

1
Yaowenjie commented 7 years ago

any idea or experience on it? @JimmyLv @linesh-simplicity

EthanLin-TWer commented 7 years ago

nope.

Yaowenjie commented 7 years ago

@linesh-simplicity

  1. yes, indeed, this is why I create issue here. It should be caused by the second time API call.
  2. It should be the CSP (Content Security Policy).
  3. for practice, Habit makes things natural. But 中文也是OK的,哈哈哈
Yaowenjie commented 7 years ago

Raised a question on stackoverflow

Yaowenjie commented 7 years ago

One thought is that store the svg locally, and judge the state according to travis api. It might related to #17.

EthanLin-TWer commented 7 years ago

Guiling 他们最近好像也有在做 CSP 相关的事情。

Yaowenjie commented 7 years ago

@linesh-simplicity 这个好像和一般的CSP还不太一样,chrome插件的沙盒模型和github本身的CSP,其实我也没搞得特别清楚。