You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Girish Vasmatkar (Jira)" <ji...@apache.org> on 2021/04/05 07:03:00 UTC

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

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

Girish Vasmatkar commented on OFBIZ-12220:
------------------------------------------

[~alge] : This was on my to-do list to implement. Thanks for taking care of the same. Looks good to me.

> 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)