Re: [Jayrock] Hidding test page or methods

40 views
Skip to first unread message

Atif Aziz

unread,
Jun 3, 2013, 12:43:56 PM6/3/13
to jay...@googlegroups.com
You can hide the test page either via configuration or programmatically. If you inherited JsonRpcHandler, then you can simply override GetFeatureByName and return null for “help”, like this:

protected override object GetFeatureByName(string name)
{
    return "help".Equals(name, StringComparison.OrdinalIgnoreCase)
            ? null
            : base.GetFeatureByName(name);
}

To do it globally via configuration, see the sample web.config in the project. Uncomment the sections related to Jarock and add them to your web.config. Then you can remove the entry for help from the jayrock/jsonrpc/features section.

- Atif



On Fri, May 31, 2013 at 1:05 PM, Ronnie IJsbrandij <ron...@ijpc.nl> wrote:
Hello,

Through a view source action visitors are able to see the actual ashx page. The is a link called in my case 'try these using the JsonService test page'. On that test page all methods are presented to the (unwanted) visitors. How can I hide the test page or available methods?

Thanks for responding.

--
You received this message because you are subscribed to the Google Groups "Jayrock" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jayrock+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages