mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 12:17:07 +00:00
revert check client version changes
This commit is contained in:
1 parent
1b20c00842
commit
ef0ee78758
1 file changed
+2
-3
@@ -1,10 +1,9 @@
|
|||||||
import packageJSON from '../../package.json' with { type: "json" };
|
import packageJSON from '../../package.json' with { type: "json" };
|
||||||
const version = packageJSON.version;
|
const version = packageJSON.version;
|
||||||
|
|
||||||
export default (req, res, next)=>{
|
//This should be only for internal calls, but right now prevents spam api calls, this should be done with a proper cors policy
|
||||||
console.log(req.headers);
|
|
||||||
//check if req comes from localhost
|
|
||||||
|
|
||||||
|
export default (req, res, next)=>{
|
||||||
const userVersion = req.get('Homebrewery-Version');
|
const userVersion = req.get('Homebrewery-Version');
|
||||||
|
|
||||||
if(userVersion != version) {
|
if(userVersion != version) {
|
||||||
|
|||||||
Reference in new issue
Block a user