If you want to be safe, get a splice and some extra wires. That way you can relocate the resistor to a safe spot. It will get pretty warm. You'll need at least a 5 watt resistor. Some of them have holes for screw attachments so you can mount it on a piece of metal.
__________________
|