correct header resource to cookie resource
extract resource config applier