mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-10 07:02:39 +00:00
initial fix
This commit is contained in:
@@ -71,7 +71,7 @@ const corsOptions = {
|
|||||||
];
|
];
|
||||||
|
|
||||||
if(isLocalEnvironment) {
|
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
|
const herokuRegex = /^https:\/\/(?:homebrewery-pr-\d+\.herokuapp\.com|naturalcrit-pr-\d+\.herokuapp\.com)$/; // Matches any Heroku app
|
||||||
|
|||||||
Reference in New Issue
Block a user