Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-12220

New Response Filter/Interceptor for REST-Api calls resolving CORS issues

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: Trunk
    • Fix Version/s: Trunk
    • Component/s: plugin/rest-api
    • Labels:
    • Flags:
      Patch

      Description

      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.

        Attachments

        1. OFBIZ-trunk_RestApiCorsFilter.patch
          4 kB
          Alexander Gepting

          Activity

            People

            • Assignee:
              gvasmatkar Girish Vasmatkar
              Reporter:
              alge Alexander Gepting
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: