Add key-value pair error : EvalError: call to eval() blocked by CSP

Im getting errors even though the code looks exactly like the one in the hint/solution section:

I cant understand what i did wrong , Please help me solve it.


let foods = {
apples: 25,
oranges: 32,
plums: 28
};
// change code below this line
foods["bananas"] = 13;
foods["grapes"] = 35;
foods["strawberries"] = 27;
// change code above this line
console.log(foods);

And the same thing is happening for the next challanges also , Please solve it

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0.

Challenge: Add Key-Value Pairs to JavaScript Objects

Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-data-structures/add-key-value-pairs-to-javascript-objects

1 Like

This is a currently known issue with the learning platform and some browsers like Firefox and Edge. Please use Google Chrome as a workaround for now, while we investigate the issue.

Thanks for your patience.

I have the same issue today (on Basic Data Structures: Copy an Array with the Spread Operator). Yesterday I did not.
The only thing I did is reinstall FF this morning.
Now I got :
EvalError: call to eval() blocked by CSP

FF yesterday and today both on 72.0.1

We deployed some fresh servers ands looks like we got the config wrong at places. Please use Google Chrome for now. We will be working on a fix. Thanks for your patience.