Javascript error

Also, on saving a patient or any entity, I’m being directed to page saying “Invalid or Missing CSRF Token. Try Going Back and Refresh the page after clearing the browser cache”. Even after clearing the cache, this comes up everytime. I’m not sure but I guess there is an issue with csrfguard.js.

here is the server side log: pastebin