Allow JSON response for posts#index

Allow ecrire to send JSON response to anyone.
Merge branch 'master' into marmite
Fixing JSON Header allow origin