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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Implemented
    • Trunk
    • Trunk
    • rest-api
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: