Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!


Project description


How it works

This package contains workarounds for legacy code that contains bugs that appear evident after applying the plone4.csrffixes patch.


Add plonetrick.csrfworkarounds to the list of eggs in your buildout, run buildout and restart Plone.

Disable plone CSRF check in page templates

One of the canonical way to disable the CSRF protection is using this code snippet:


This solution is better than the workaround provided by this package. The workaround consist in customizing the template adding a call to here/disable_csrf_protection/disable, e.g.:

<metal:slot fill-slot="top_slot" tal:define="dummy here/@@disable_csrf_protection/disable" />

Disable plone CSRF transform when getting TinyMCE configuration


There is no easy fix with this, so I added the workaround view tinymce-jsonconfiguration-csrf-free that wraps the original one adding the requested header.

Example usage:

  url: portal_url + '/@@tinymce-jsonconfiguration-csrf-free?field=' + encodeURI(element.attr('name')),
  success: function(data) {
    element.attr({'data-mce-config': data});
    window.initTinyMCE(element.parent(), {});


0.9.0 (2015-11-25)

  • Initial release. [ale-rt]

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for plonetrick.csrfworkarounds, version 0.9.0
Filename, size File type Python version Upload date Hashes
Filename, size plonetrick.csrfworkarounds-0.9.0.tar.gz (9.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page