[jira] [Commented] (OFBIZ-12220) New Response Filter/Interceptor for REST-Api calls resolving CORS issues

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-12220) New Response Filter/Interceptor for REST-Api calls resolving CORS issues

ASF subversion and git services (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-12220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17315252#comment-17315252 ]

ASF subversion and git services commented on OFBIZ-12220:
---------------------------------------------------------

Commit 45e246bce0afb4cc3214a7cf08b43e45911354a0 in ofbiz-plugins's branch refs/heads/trunk from Girish Vasmatkar
[ https://gitbox.apache.org/repos/asf?p=ofbiz-plugins.git;h=45e246b ]

Improved: Added CORS filter for the rest-api (OFBIZ-12220).
Thanks Alexander Gepting for the contribution.


> New Response Filter/Interceptor for REST-Api calls resolving CORS issues
> ------------------------------------------------------------------------
>
>                 Key: OFBIZ-12220
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12220
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: plugin/rest-api
>    Affects Versions: Trunk
>            Reporter: Alexander Gepting
>            Priority: Minor
>              Labels: patch
>             Fix For: Trunk
>
>         Attachments: OFBIZ-trunk_RestApiCorsFilter.patch
>
>
> Attached patch contains an new http response interceptor for the rest-api plugin which populates common headers into each response preventing CORS issues likely arise if the API is being consumed by SPAs hosted on different domains as the OFBiz instance does.
> This implementation is currently being used in our projects were OFbiz serves as headless backend for Angular ERP/CRM/eCommerce single page applications.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)