Json files being blocked

We have some i18n json files stored like /assets/i18n/en.json
When our angular web app requests this resource it is receiving a 403 forbidden.

How to we configure ServiceStack to allow requests to such files?

Need to add the extension to the allowed file extension list:

SetConfig(new HostConfig {  
    AllowFileExtensions = { "json" } 
});

You’ll want to check you don’t have any .json config files in your web servable area you don’t want to provide access to.

1 Like