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

How to secure also post? #7

Closed WastedFreeTime closed 4 years ago

WastedFreeTime commented 4 years ago

I thougt 'cors.origin' => '*' would send CORS Header for every method not only GET. How can i secure also POST?

powerman commented 4 years ago

It works for any method you need. Personally I don't use Perl for years, but if you'll show me an example of your code which works for GET but not POST I'll try to help.

WastedFreeTime commented 4 years ago

I found a workaround.