As part of embryonic development the pancreas forms from the embryonic foregut and is therefore of endodermal origin.