$h4X4_|=73}{ has asked for the wisdom of the Perl Monks concerning the following question:
How would you add in "Cache-Control: " and "Access-Control-Allow-Origin:" to CGI header?
use CGI qw(:standard); $CGI::POST_MAX = 1024 * 100; $CGI::DISABLE_UPLOADS = 1; my $query = new CGI; print $query->header( -expires => 'now', -cache => 1, # HTTP/1.0 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI.pm header
by stevieb (Canon) on May 24, 2016 at 16:13 UTC | |
by $h4X4_|=73}{ (Monk) on May 24, 2016 at 16:24 UTC | |
by stevieb (Canon) on May 24, 2016 at 16:28 UTC | |
by $h4X4_|=73}{ (Monk) on May 24, 2016 at 16:33 UTC |