Weldwood contact cement was often used to glue foam into boats. These days I see a number of spray-on contact cements are available.
“Guest,” a former member here, has taken to laying a bead of E6000 glue around the edges of glued-down foam. I think it is to keep sand from getting under the...