Uploaded image for project: 'ServiceMix 4'
  1. ServiceMix 4
  2. SMX4-1313

Add EnableCORSInterceptor for cxf related examples

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.5.0
    • Examples
    • None

    Description

      several cxf related examples has a client.html which is designed to be loaded by a browser to send and receive soap message.
      However, modern browsers will check CORS http header from the response message, so the client.html won't work in most modern browsers(only display Status 0 for the response area).
      we can add an interceptor for the server side, which simply add response http header like

      Access-Control-Allow-Origin: *
      Access-Control-Allow-Methods: POST, GET
      

      then the response message could be accepted by the browser

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            ffang Freeman Yue Fang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: