Dynamic options via JSON API for select field

You have to pass an absolute URL, see this post, also for an alternative.