Allowing google translate to serve ads.

This commit is contained in:
Sergiotarxz 2023-12-04 15:00:11 +01:00
parent 5eb2df7372
commit edfb476ed2

View File

@ -13,6 +13,7 @@ sub next_ad {
my $self = shift;
my $ads_factory = BurguillosInfo::Ads->new;
my $current_ad_number = $self->param('n');
$self->res->headers->access_control_allow_origin('*');
$self->render( json => $ads_factory->get_next($current_ad_number) );
}
1;