95 subaru impreza headlights shorted

The plugs that attach to the back on the headlights melted and now I have non functioning headlights. All other electrical systems seem fine. Any ideas what would of caused both plugs to overheat/short?

Were you using those colored aftermarket bulbs? They are higher wattage and as such get hotter.

No. Just the standard ones. Both plugs went out and not after replacing them.