Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Change Detection
  3. Disable CSRF to enable bookmarklets

Disable CSRF to enable bookmarklets

Scheduled Pinned Locked Moved Change Detection
4 Posts 2 Posters 1.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SansGuidonS Online
    SansGuidonS Online
    SansGuidon
    wrote on last edited by SansGuidon
    #1

    Hey!
    I was following a GitHub discussion about enabling bookmarklets for Changedetection, and we were told it's impossible because of security concerns (CSRF), but it appears, based on a comment in that discussion [1], for a private instance, to disable CSRF tokens (enabled by default in Django) and thus unblock the possibility to use bookmarklets.

    I wonder if it's difficult or not to override this behavior maybe during the build of Cloudron's Changedetection app, without having to touch the source of Changedetection app.

    Thanks in advance ! 😁

    [1] https://github.com/dgtlmoon/changedetection.io/discussions/858#discussioncomment-10478747

    About me / Now

    1 Reply Last reply
    1
    • nebulonN Away
      nebulonN Away
      nebulon
      Staff
      wrote on last edited by
      #2

      Given that disabling it would result in a security issue for everyone, you would have to create a custom Cloudron app build from https://git.cloudron.io/cloudron/changedetection-app but to be clear there are good reasons why django enables that by default. I guess the correct way to do this nowadays would be to provide some webextension for the browser for changedetection to have a convenient way to add pages.

      1 Reply Last reply
      2
      • SansGuidonS Online
        SansGuidonS Online
        SansGuidon
        wrote on last edited by
        #3

        it makes sense! I didn't develop any web extension for years though, but that's likely a viable option, thanks @nebulon

        About me / Now

        1 Reply Last reply
        1
        • SansGuidonS Online
          SansGuidonS Online
          SansGuidon
          wrote on last edited by joseph
          #4

          And the author has just answered the problem for me, such extension exists and works fine on my self-hosted
          https://chromewebstore.google.com/detail/changedetectionio-website/kefcfmgmlhmankjmnbijimhofdjekbop

          About me / Now

          1 Reply Last reply
          1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search