Skip to content

S3 design streamlining#119

Merged
DarkPurple141 merged 14 commits intodevfrom
s3-design-streamlining
Sep 2, 2018
Merged

S3 design streamlining#119
DarkPurple141 merged 14 commits intodevfrom
s3-design-streamlining

Conversation

@DarkPurple141
Copy link
Collaborator

lots of things.

@DarkPurple141 DarkPurple141 added Feature New feature or request Task Actual break down of User Story into sub features labels Sep 1, 2018
@DarkPurple141 DarkPurple141 added this to the Sprint 3 milestone Sep 1, 2018
*/
exports.cors = function(_, response, next) {
response.header('Access-Control-Allow-Origin', '*')
response.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this cors thing just adds headers to the response?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. In production we will possibly need cors as well, but configured to a specific origin.

next()
})
app.use(logger('dev'))
app.use(require('./utils/cors').cors)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good idea to differentiate dev and prod.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@DarkPurple141 DarkPurple141 merged commit 3571437 into dev Sep 2, 2018
@DarkPurple141 DarkPurple141 deleted the s3-design-streamlining branch September 2, 2018 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature or request Task Actual break down of User Story into sub features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants