Fixes a bug in ActiveTag component
Adds csrf protection