Page MenuHome

Development fund page has non-functioning currency option.
Confirmed, NormalPublic


System Information:
Operating system: Linux
Web browser: Google Chrome 81.0.4044.138

Page broken:

Description of error:
At the bottom of the Blender development fund page there is a drop down to select a currency. Changing this between USD and Euro does not seem to change the currency as all prices are still listed as $ and all values stay the same.

Event Timeline

Evan Wilson (EAW) changed the task status from Needs Triage to Confirmed.Wed, May 13, 1:44 PM

Confirmed using Windows 10 and Firefox 76.0.1

This page opens in browser though.

Failed to load resource: the server responded with a status of 403 ()

So the

function set_preferred_currency(currency) {
    $.post('/preferred-currency', {'preferred_currency': currency})
    .fail(function(error) {
        console.log('Error setting preferred currency:', error);
    .done(function() {
        // Show the change in currency by reloading the current window.

gives out error & doesn't refresh the page.
CC @Francesco Siddi (fsiddi)

ronsn added a subscriber: ronsn.Thu, May 14, 1:09 AM

The response code 403 means "forbidden". It seems that you are sending POST data and your backend validation doesn't like that data. It asks for a key to avoid a cross-site request forgery (CSRF). So you have to send also a form key, or csrfkey, or how it is called in your system. E.g. by putting this key into a hidden form field, or setting it via JS. :)

I can confirm that the request fails when the user is not logged into the site because a CSRF token is not generated in the template. Will look into a fix soon.