Skip to content

Instantly share code, notes, and snippets.

@GiancarloGomez
Created May 26, 2021 23:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GiancarloGomez/46d5a63ef6d827a3c0ab255a270ac391 to your computer and use it in GitHub Desktop.
Save GiancarloGomez/46d5a63ef6d827a3c0ab255a270ac391 to your computer and use it in GitHub Desktop.
User Agent Client Hints - Request and Render
<cfscript>
headerList = "Sec-CH-UA-Arch,Sec-CH-UA-Full-Version,Sec-CH-UA-Mobile,Sec-CH-UA-Model,Sec-CH-UA-Platform-Version,Sec-CH-UA-Platform,Sec-CH-UA";
cfheader(name:"Accept-CH",value:headerList);
for ( key in headerList )
writeOutput(key & " : " & cgi[lcase(key)] & "<br />");
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment