Thanks David I've adjusted --allow-origin and it works fine now.
The original problem is still there though: 1) remove server dependency jar (e.g. morfologik-tools.jar) and restart the server 2) submit a request to the server 3) if I do it with dev tool I see the stack trace (java.lang.NoClassDefFoundError: morfologik/util/ResourceUtils) - BTW we probably should not expose our internal exceptions to the world (rather catch 500 and print short message) 4) if I submit a check via the web-page (directly to API, no proxy) there's no messages and text shows up as no errors Regards, Andriy 2016-04-20 9:29 GMT-04:00 Daniel Naber <daniel.na...@languagetool.org>: > On 2016-04-20 15:02, Andriy Rysin wrote: > >> this works if I point to https://languagetool.org/api/v1/, but I was >> not able to run with direct API pointing to the server running locally >> on my machine. I've added --public and it listens on *:8081 but it >> never returns a request. >> Is there some other config options I need to turn on? > > Yes, see the comment next to languagetool_rpc_url: > > the URL of your LanguageTool server or the URL of your proxy file, > if you use your own server here and it's not running on the same > domain > as the text form, make sure the server gets started with > '--allow-origin ...' > > So you can use > > --allow-origin '*' > > to make sure it works from everywhere. > > Regards > Daniel > > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications Manager > Applications Manager provides deep performance insights into multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > _______________________________________________ > Languagetool-devel mailing list > Languagetool-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/languagetool-devel ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel