Uploaded image for project: 'GPII - Global Public Inclusive Infrastructure'
  1. GPII - Global Public Inclusive Infrastructure
  2. GPII-217

CORS Support Required for Online Flow Manager

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: C4A Portugal Workshop
    • Fix Version/s: C4A Review Meeting Year 2
    • Component/s: FlowManager
    • Labels:
      None
    • Environment:
      Online Flow Manager

      Description

      CORS support needs to be added to the Online Flow Manager to allow preferences to be fetched from external web applications.

      A new set of server headers needs to be added to the "kettle.server.config.configCreateRequest" function within "universal/node_modules/kettle/lib/server.js" using the following method call.

      server.use(function (req, res, next) {
          res.header("Access-Control-Allow-Origin", "*");
          res.header("Access-Control-Allow-Methods", "OPTIONS,GET,POST,PUT,DELETE");
          res.header("Access-Control-Allow-Headers", "X-Requested-With,Content-Type");
          next();
      });
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kasper Kasper Markus
              Reporter:
              skirkpatrick Sam Kirkpatrick
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: