Add default permitted fields
Detect path prefix