Adding headers to the openDirectoryAction.