Added headers to resource handler