2530d769 by Administrator

Merge branch '30791_fix' into 'master'

30791_fix

See merge request !99
2 parents 9ab72f76 7904ae9b
Showing 1 changed file with 1 additions and 1 deletions
...@@ -74,7 +74,7 @@ const max_tokens = process.env.MAX_TOKENS_chatbot_plus ? parseInt(process.env.MA ...@@ -74,7 +74,7 @@ const max_tokens = process.env.MAX_TOKENS_chatbot_plus ? parseInt(process.env.MA
74 74
75 // Primary Open AI Route 75 // Primary Open AI Route
76 app.post('/api', async (req, res) => { 76 app.post('/api', async (req, res) => {
77 if(!req.get('host').includes(req.get('origin'))) { 77 if(!req.get('origin') || (!req.get('origin').includes(req.get('host')))) {
78 res.status(401); 78 res.status(401);
79 res.send('Method Not Allowed'); 79 res.send('Method Not Allowed');
80 return; 80 return;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!