Click here to Skip to main content
15,919,479 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Geeks,

I am stuck up with XSRF Security threat fix.

var thisURL = window.location.href;

this.navigateTarget.location.href = url;

The above code snippet is from a method which gets a parameter
from a user request URL from element href. I am using checkmarx tool to validate my code, but it is showing as vulnerable to Client DOM XSRF.

Can you please suggest me how can I fix it ?
Updated 16-Apr-15 17:20pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900