Giter VIP home page Giter VIP logo

Comments (11)

smgt avatar smgt commented on May 31, 2024

This error started to pop up when I updated Chrome. Guess Chrome have changed something in the security policy.

from dotjs.

starzonmyarmz avatar starzonmyarmz commented on May 31, 2024

๐Ÿ‘

Could this be fixed by changing "http://" to just "//" here? https://github.com/defunkt/dotjs/blob/master/ext/dotjs.js#L2

from dotjs.

Peeja avatar Peeja commented on May 31, 2024

Can't test it right now, but that sounds right.

from dotjs.

smgt avatar smgt commented on May 31, 2024

Ok, there seems to be a new security policy in Chrome 22. In the extension documentation it is stated that you can allow loading scripts with content_security_policy from http://localhost but that does not work. The fix for the error will be released in Chrome 23. And // doesn't work since the dotjs webserver does not serve https. I was a little to fast when I tested it.

from dotjs.

technicalpickles avatar technicalpickles commented on May 31, 2024

If the dotjs webserver doesn't serve https, maybe something like https://github.com/jugyo/tunnels could be used to proxy from https to it. I came across that gem in the context of having https for pow, but could apply here too.

from dotjs.

defunkt avatar defunkt commented on May 31, 2024

Confirmed that tunnels works. Kind of annoying though.

from dotjs.

zeke avatar zeke commented on May 31, 2024

๐Ÿ’ก piggyback on github's ssl by hacking the extension to point to https://raw.github.com/foo/bar/master/ instead of http://localhost:3131/.

from dotjs.

Peeja avatar Peeja commented on May 31, 2024

@zeke You mean commit your .js/ and put it on GitHub? That would work, but it sounds like a pain.

Is there an easy way to spin up an nginx that tunnels? That would avoid the ugliness of RubyGems, and seems like a reasonable dependency.

from dotjs.

defunkt avatar defunkt commented on May 31, 2024

Got this working with just WEBrick. You'll need to uninstall dotjs then install 2.0 to get the new stuff.

image

from dotjs.

Peeja avatar Peeja commented on May 31, 2024

Thanks! ๐Ÿป

from dotjs.

zeke avatar zeke commented on May 31, 2024

To uninstall: rake uninstall

from dotjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.