Map api requests within preview frame to pages api.