Very cool! That's the true spirit of open source! On Sun, Sep 11, 2016 at 1:44 AM, Janak Amarasena <ja...@wso2.com> wrote:
> Implemented it :) will send a PR > > On Fri, Sep 9, 2016 at 8:17 PM, Afkham Azeez <az...@wso2.com> wrote: > >> >> >> On Fri, Sep 9, 2016 at 7:25 PM, Janak Amarasena <ja...@wso2.com> wrote: >> >>> >>> Can you implement it and send us a PR? >>> >>> >>> Not sure about implementing at the moment. >>> >> >> Why is that? Implementing it should be pretty straighforward & an >> interesting weekend coding project. :) >> >>> >>> Please also create an issue for this at https://github.com/wso2/msf >>>> 4j/issues >>> >>> >>> Will do. >>> >>> Thank You >>> >>> On Fri, Sep 9, 2016 at 7:19 PM, Afkham Azeez <az...@wso2.com> wrote: >>> >>>> Please also create an issue for this at https://github.com/wso2/msf >>>> 4j/issues >>>> >>>> On Fri, Sep 9, 2016 at 7:15 PM, Afkham Azeez <az...@wso2.com> wrote: >>>> >>>>> We don't support Options at the moment. Can you implement it and send >>>>> us a PR? >>>>> >>>>> On Fri, Sep 9, 2016 at 6:14 PM, Janak Amarasena <ja...@wso2.com> >>>>> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I created a microservice using MSF4J and tested the resources with >>>>>> postman all works fine but when I use it with a AngularJS client app; the >>>>>> browser sends an additional http OPTIONS request to check CORS I get a >>>>>> "405 >>>>>> Method Not Allowed" Response. >>>>>> >>>>>> I created a resource with @OPTIONS (javax.ws.rs) annotation to the >>>>>> same path still the same result, 405 response, the method doesn't even >>>>>> get >>>>>> triggered. >>>>>> >>>>>> @OPTIONS >>>>>> @Path("/") >>>>>> public Response options() { >>>>>> >>>>>> return Response.ok() >>>>>> .header("Access-Control-Allow-Origin", "*") >>>>>> .header("Access-Control-Allow-Credentials", "true") >>>>>> .header("Access-Control-Allow-Methods", "POST, GET, PUT, >>>>>> UPDATE, DELETE, OPTIONS, HEAD") >>>>>> .header("Access-Control-Allow-Headers", "Content-Type, >>>>>> Accept, X-Requested-With") >>>>>> .build(); >>>>>> } >>>>>> >>>>>> >>>>>> I think the http OPTIONS request is not recognized. >>>>>> >>>>>> >>>>>> For your advise please. >>>>>> >>>>>> >>>>>> Thank You, >>>>>> Best Regards, >>>>>> >>>>>> >>>>>> -- >>>>>> Janak Amarasena >>>>>> >>>>>> *Intern* >>>>>> >>>>>> *WSO2, Inc. * >>>>>> >>>>>> *lean . enterprise . middleware * >>>>>> >>>>>> *Mobile: +94777764144 <%2B94777764144>* >>>>>> >>>>>> *Email: *ja...@wso2.com >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> *Afkham Azeez* >>>>> Director of Architecture; WSO2, Inc.; http://wso2.com >>>>> Member; Apache Software Foundation; http://www.apache.org/ >>>>> * <http://www.apache.org/>* >>>>> *email: **az...@wso2.com* <az...@wso2.com> >>>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: * >>>>> *http://blog.afkham.org* <http://blog.afkham.org> >>>>> *twitter: **http://twitter.com/afkham_azeez* >>>>> <http://twitter.com/afkham_azeez> >>>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez >>>>> <http://lk.linkedin.com/in/afkhamazeez>* >>>>> >>>>> *Lean . Enterprise . Middleware* >>>>> >>>> >>>> >>>> >>>> -- >>>> *Afkham Azeez* >>>> Director of Architecture; WSO2, Inc.; http://wso2.com >>>> Member; Apache Software Foundation; http://www.apache.org/ >>>> * <http://www.apache.org/>* >>>> *email: **az...@wso2.com* <az...@wso2.com> >>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: * >>>> *http://blog.afkham.org* <http://blog.afkham.org> >>>> *twitter: **http://twitter.com/afkham_azeez* >>>> <http://twitter.com/afkham_azeez> >>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez >>>> <http://lk.linkedin.com/in/afkhamazeez>* >>>> >>>> *Lean . Enterprise . Middleware* >>>> >>> >>> >>> >>> -- >>> Janak Amarasena >>> >>> *Intern* >>> >>> *WSO2, Inc. * >>> >>> *lean . enterprise . middleware * >>> >>> *Mobile: +94777764144 <%2B94777764144>* >>> >>> *Email: *ja...@wso2.com >>> >> >> >> >> -- >> *Afkham Azeez* >> Director of Architecture; WSO2, Inc.; http://wso2.com >> Member; Apache Software Foundation; http://www.apache.org/ >> * <http://www.apache.org/>* >> *email: **az...@wso2.com* <az...@wso2.com> >> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: * >> *http://blog.afkham.org* <http://blog.afkham.org> >> *twitter: **http://twitter.com/afkham_azeez* >> <http://twitter.com/afkham_azeez> >> *linked-in: **http://lk.linkedin.com/in/afkhamazeez >> <http://lk.linkedin.com/in/afkhamazeez>* >> >> *Lean . Enterprise . Middleware* >> > > > > -- > Janak Amarasena > > *Intern* > > *WSO2, Inc. * > > *lean . enterprise . middleware * > > *Mobile: +94777764144 <%2B94777764144>* > > *Email: *ja...@wso2.com > -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * <http://www.apache.org/>* *email: **az...@wso2.com* <az...@wso2.com> * cell: +94 77 3320919blog: **http://blog.afkham.org* <http://blog.afkham.org> *twitter: **http://twitter.com/afkham_azeez* <http://twitter.com/afkham_azeez> *linked-in: **http://lk.linkedin.com/in/afkhamazeez <http://lk.linkedin.com/in/afkhamazeez>* *Lean . Enterprise . Middleware*
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev