Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Commit

Permalink
fixes #391 ... maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
wesyoung committed Mar 5, 2016
1 parent 947b11e commit 9c9aa49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Revision history for massive-octo-spice
2.00.00-rc.11 2016-03-
- https://github.com/csirtgadgets/massive-octo-spice/issues/392 -- cc fix
- https://github.com/csirtgadgets/massive-octo-spice/issues/393 -- acl fix
- https://github.com/csirtgadgets/massive-octo-spice/issues/391 -- cors fixes

2.00.00-rc.10 2016-02-23
- small bugfix to cif-smrt remote config
Expand Down
3 changes: 3 additions & 0 deletions src/lib/CIF/REST.pm
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ sub startup {
$self->hook(after_render => sub {
my ($c, $output, $format) = @_;
$c->res->headers->append('X-CIF-Media-Type' => 'cif.v'.VERSION);
# cors stuff
$c->res->headers->append('Access-Control-Allow-Origin', '*');
$c->res->headers->append('Access-Control-Allow-Headers', 'x-requested-with');
});

# http://mojolicio.us/perldoc/Mojolicious/Guides/Rendering#Content-type
Expand Down

0 comments on commit 9c9aa49

Please sign in to comment.