freeCodeCamp/curriculum/challenges/arabic/06-information-security-and.../information-security-with-h.../disable-dns-prefetching-wit...

675 B

id title challengeType videoUrl localeTitle
587d8248367417b2b2512c3d Disable DNS Prefetching with helmet.dnsPrefetchControl() 2

Description

undefined

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'getUserInput => $.get(getUserInput("url") + "/_api/app-info").then(data => { assert.include(data.appStack, "dnsPrefetchControl"); assert.equal(data.headers["x-dns-prefetch-control"], "off"); }, xhr => { throw new Error(xhr.responseText); })'

Challenge Seed

Solution

// solution required