pd4d10 / octohint

The missing IntelliSense hint for GitHub and GitLab
https://chrome.google.com/webstore/detail/octohint/hbkpjkfdheainjkkebeoofkpgddnnbpk
MIT License
962 stars 35 forks source link

On a private Github installation, fails to load font... #22

Closed sapirgolan closed 6 years ago

sapirgolan commented 6 years ago

Hi,

I'm working in an organization that has a private installation of github. The extension fails to load due to the following error: Refused to load the font '' because it violates the following Content Security Policy directive: "font-src assets.github.corp.****.com"
(full domain name was removed for privacy) There is no resonse for any of the requests made by the extention.

pd4d10 commented 6 years ago

@sapirgolan Octohint does not load any custom font, so the Refused to load the font error may not be related with it.

Have you given the permission of your site?

https://github.com/pd4d10/octohint/blob/master/README.md#get-your-private-site-works

sapirgolan commented 6 years ago

Sure, this was the first thing I did.

pd4d10 commented 6 years ago

@sapirgolan OK. Debugging is a little complicated:

Please go to

chrome://extensions/?id=hbkpjkfdheainjkkebeoofkpgddnnbpk

and make sure your site is already listed at permissions.

Then click Inspect views -> background page to open a debugging popup, and refresh your site. Maybe there is some useful information.

The private GitHub's DOM may be different with https://github.com, so our scripts may not be injected correctly.

sapirgolan commented 6 years ago

Hi @pd4d10,

I've followed your instructions. My site is already listed at permissions

Bellow you can see the error from the debugging


    at t.getOccurrences (chrome-extension://hbkpjkfdheainjkkebeoofkpgddnnbpk/dist/background.js:1:737573)
    at handleMessage (chrome-extension://hbkpjkfdheainjkkebeoofkpgddnnbpk/dist/background.js:1:730154)
    at chrome-extension://hbkpjkfdheainjkkebeoofkpgddnnbpk/dist/background.js:1:729044```
pd4d10 commented 6 years ago

@sapirgolan Please provide the full error message

pd4d10 commented 6 years ago

I'm going to close this since we don't have enough information to figure it out.

Feel free to reopen it :)