If I were writing LaTeX code directly, I could pass options to hyperref via beamer:
\usepackage[dvipsnames,hyperref={colorlinks=true,linkcolor=black,urlcolor=blue}]{beamer}
but I'm not using LaTeX directly; I am using Pandoc instead. I have the option in Pandoc to include a header TeX file, but it is unclear to me how I could change the options passed to Beamer, since the beamer package is not loaded by any of my hand-written lines of header code; instead, it is loaded by code generated by Pandoc itself.
I have tried to use PassOptionsToPackage (both to beamer or hyperref directly) but it doesn't seem to take.
How can I set hyperref options via beamer, when using Pandoc?