HP906306 (Community Member) asked a question.

Fix for: Insertion of Sensitive Information Into Sent Data (Fetch function) . CWE 201

Hi,

We are using the fetch function and passing a url to it. Veracode SAST is flagging this as a low level vulnerability (CWE 201) with 'fetch' function as the attack vector. Please suggest a fix for this?

 

  const response = await fetch(url, {

      method: 'POST',

      headers: {

        'Content-Type': 'application/json',

      },


Topics (3)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.