Headers Error

Hello, I keep getting the error:
{
  success: false,
  errors: [
    {
      code: 6003,
      message: 'Invalid request headers',
      error_chain: [Array]
    }
  ],
  messages: [],
  result: null
}

Please help my code:

      const options = {
        method: 'PATCH',
        headers: {'Content-Type': 'application/json', 'X-Auth-Email': 'LoveYouCutie@gmail.com', 'X-Auth-Key': 'NOT TODAY'},
        body: '{"value":"medium"}'
      };
      
      fetch(`https://api.cloudflare.com/client/v4/zones/${zone_identifier}/settings/security_level`, options)
        .then(response => response.json())
        .then(response => console.log(response))
        .catch(err => console.error(err))
Was this page helpful?