Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Add CORS headers to other servers #121

Closed
wants to merge 2 commits into from
Closed

Conversation

zpao
Copy link
Member

@zpao zpao commented Jan 26, 2016

#120 added them for the JS server. This adds it to the rest. And adds the Cache-Control header to the Perl impl too, which was missing all of the explicit headers we want.

@sophiebits
Copy link
Member

sure. squash?

@@ -19,6 +19,9 @@
any [qw(GET POST)] => '/api/comments' => sub {
my $self = shift;
my $comments = decode_json (do { local(@ARGV,$/) = 'comments.json';<> });
my $headers = Mojo::Headers->new;
Copy link
Member

Choose a reason for hiding this comment

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

rm

@zpao
Copy link
Member Author

zpao commented Jan 26, 2016

pushed

@zpao zpao closed this Jan 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants