mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 14:26:54 +00:00
initial fix
This commit is contained in:
1 parent
8d1464a2c4
commit
72c2857237
1 file changed
+1
-1
+1
-1
@@ -71,7 +71,7 @@ const corsOptions = {
|
||||
];
|
||||
|
||||
if(isLocalEnvironment) {
|
||||
allowedOrigins.push('http://localhost:8000', 'http://localhost:8010');
|
||||
allowedOrigins.push('http://localhost:8000', 'http://localhost:8010', /^http:\/\/192\.168\.\d+\.\d+:\d+$/);
|
||||
}
|
||||
|
||||
const herokuRegex = /^https:\/\/(?:homebrewery-pr-\d+\.herokuapp\.com|naturalcrit-pr-\d+\.herokuapp\.com)$/; // Matches any Heroku app
|
||||
|
||||
Reference in new issue
Block a user