Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support disabling CORS by setting config value to false #165

Closed
wants to merge 1 commit into from

Conversation

claylo
Copy link
Contributor

@claylo claylo commented Jan 20, 2015

CORS headers may be enabled/handled elsewhere in the application stack, so strong-remoting should support the ability to turn its internal use of CORS off entirely.

See strongloop/loopback#575

@slnode
Copy link

slnode commented Jan 20, 2015

Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test."

@bajtos
Copy link
Member

bajtos commented Jan 27, 2015

@slnode ok to test

@bajtos
Copy link
Member

bajtos commented Jan 27, 2015

Hi @claylo, thank you for the pull request. The proposed implementation is sub-optimal as it unnecessarily adds a middleware handler that is effectively a no-op. A better solution is to not add the middleware handler at all (see the line root.use(corsHandler);). Please rework the patch.

@bajtos
Copy link
Member

bajtos commented Feb 23, 2015

Hi @claylo, what's the status of this pull request, are you still keen to finish it up?

@bajtos
Copy link
Member

bajtos commented Mar 10, 2015

I have fixed the remaining issues, reworked the commit message to follow the 50/72 rule and landed the patch.

Thank you @claylo for the contribution.

@bajtos bajtos removed the waiting label Mar 10, 2015
@claylo
Copy link
Contributor Author

claylo commented Mar 10, 2015

Thank you, @bajtos -- sorry about the mess with the rebasing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants