You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At both of those lines, policy[key] points to options[key] by reference. This modifies options for all future requests, and is not the desired behavior.
The text was updated successfully, but these errors were encountered:
baconmania
added a commit
to baconmania/helmet
that referenced
this issue
Jun 2, 2014
The problem is in these two lines:
https://github.com/evilpacket/helmet/blob/master/lib/middleware/csp.js#L129
https://github.com/evilpacket/helmet/blob/master/lib/middleware/csp.js#L137
At both of those lines,
policy[key]
points tooptions[key]
by reference. This modifiesoptions
for all future requests, and is not the desired behavior.The text was updated successfully, but these errors were encountered: