Merge branch '30791_fix' into 'master'
30791_fix See merge request !99
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; | ... | ... |
-
Please register or sign in to post a comment