ChatCrawlersearch across public Telegram Open the app
ن

نودجی اس | Nodejs | NestJS | javascript | جاوااسکریپت | typescript

сообщение · 2024-08-29 08:47 UTC
R
Replymessage unavailable
از چت جی پی تی پرسیدم میگه کروم داستانش با فایرفاکس فرق میکنه و تو این چیزا سختگیرتره و قبل از فرستادن ریکوئست اصلی یه درخواست هایی میکنه که اگه مشکل کورس باشه ریکوئست رو اصلا نفرسته. واسه حلش هم این راه رو پیشنهاد داد: const cors = require('cors'); // Use cors middleware with default settings app.use(cors()); // Alternatively, configure it to allow specific origins // app.use(cors({ // origin: 'http://your-allowed-origin.com', // methods: ['GET', 'POST', 'PUT', 'DELETE'], // credentials: true, // })); // Your routes here

Вся лента · оригинал в Telegram

Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog