powerman / perl-Mojolicious-Plugin-SecureCORS

Perl module: Mojolicious::Plugin::SecureCORS - Complete control over CORS
https://metacpan.org/release/Mojolicious-Plugin-SecureCORS
Other
0 stars 4 forks source link

Doesn't work for static files #2

Open daotoad opened 7 years ago

daotoad commented 7 years ago

Files shared under the public (or other static directories) don't trigger the necessary hook to get checked for CORS settings.

powerman commented 7 years ago

I don't used Perl for a while, so if you'll provide PR with fix then this issue will have higher chance to be solved.

I'm usually serve static files of Mojo project by nginx instead of Mojo, and setup CORS headers for these static files in nginx config - this may works for you as a workaround.