Skip to content

Add support for CORS in saltnado. Ref #26505 - #27142

Merged
cachedout merged 2 commits into
saltstack:developfrom
tinyclues:26505_cors_support_saltnado
Sep 16, 2015
Merged

cachedout merged 2 commits into
saltstack:developfrom
tinyclues:26505_cors_support_saltnado

Conversation

@Lothiraldan

Copy link
Copy Markdown
Contributor

Add support for CORS and tests in RPC salt-api. The code was inspired by
https://github.com/globocom/tornado-cors.

Also add support for CORS in websocket. By adding some tests, I made
a small refactoring to make the websocket handler more easily testable.

Some documentation about CORS could be found here
https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
for reference.

Add support for CORS and tests in RPC salt-api. The code was inspired by
https://github.com/globocom/tornado-cors.

Also add support for CORS in websocket. By adding some tests, I made
a small refactoring to make the websocket handler more easily testable.

Some documentation about CORS could be found here
https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
for reference.
@whiteinge

Copy link
Copy Markdown
Contributor

The code looks great. (Excepting for the tiny linting nits.) And tests?! You have definitively earned the Favorite Contribution of the Day badge. 🏆

@arnisoph

Copy link
Copy Markdown
Contributor

Tests are great :)

@jfindlay jfindlay added Master Change Awesome Core relates to code central or existential to Salt Salt-API Release-Notes labels Sep 15, 2015
@jfindlay

Copy link
Copy Markdown
Contributor

@Lothiraldan, as predicted, there are a few lint errors.

@Lothiraldan

Copy link
Copy Markdown
Contributor Author

I will fix them right now!

@jfindlay jfindlay removed the Lint label Sep 15, 2015
cachedout pushed a commit that referenced this pull request Sep 16, 2015
@cachedout
cachedout merged commit 47cf7f5 into saltstack:develop Sep 16, 2015
@Lothiraldan

Copy link
Copy Markdown
Contributor Author

Awesome thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Awesome Core relates to code central or existential to Salt Salt-API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants