Skip to content

Commit

Permalink
Reject non-origin requests
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaVohl committed Nov 19, 2024
1 parent 0353b26 commit 2feaf7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ if (!Services.env.isProduction()) {

if (
allowedOrigins.includes(origin) || // Explicitly allowed origins
regex.test(origin) || // Matches dashboard subdomains
!origin // Allow non-origin requests
regex.test(origin) // Matches dashboard subdomains
) {
callback(null, true);
} else {
Expand Down

0 comments on commit 2feaf7f

Please sign in to comment.