arunans23 opened a new pull request, #93:
URL: https://github.com/apache/synapse/pull/93

   ## Purpose
   > Describe the problems, issues, or needs driving this feature/fix and 
include links to related issues in the following 
   > format: Resolves issue1, issue2, etc.
   
   Currently, CORS cannot be configured in the REST API which is useful when 
invoking the APIs direclty from modern browsers.
   
   ## Approach
   > Describe how you are implementing the solutions. Include an animated GIF 
or screenshot if the change affects the UI. 
   > Include a link to a Markdown file or Google doc if the feature 
   > write-up is too long to paste here.
   
   This PR brings an improvement to read CORs configuration from 
`synapse.properties` file and set in the API request and response path.
   
   The cors can be configured using the following properties in 
synapse.properties.
   
   ```
   synapse.rest.CORSConfig.enabled=true
   
synapse.rest.CORSConfig.Access-Control-Allow-Origin=http://localhost:3000,https://example.com
   
synapse.rest.CORSConfig.Access-Control-Allow-Headers=Content-Type,Authorization,X-Requested-With
   ```
   
   ## Release note
   > If applicable a brief description of the new feature or bug fix as it will 
appear in the release notes
   
   ## Automation tests
    - Unit tests 
      > Code coverage information
    - Integration tests
      > Details about the test cases and coverage
   
   ## Related PRs
   > List any other related PRs
   
   ## Test environment
   > List all JDK versions, operating systems, databases, and browser/versions 
on which this feature/fix was tested
    
   ## Learning
   > Describe the research phase and any blog posts, patterns, libraries, or 
add-ons you used to solve the problem.                        


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to