CORS
This commit is contained in:
parent
2beb19d961
commit
fd5b403e9d
1 changed files with 3 additions and 1 deletions
|
|
@ -13,7 +13,9 @@ async function main() {
|
|||
|
||||
const app = express();
|
||||
|
||||
app.use(cors());
|
||||
app.use(cors({
|
||||
origin: "*",
|
||||
}));
|
||||
app.use(express.json());
|
||||
app.use(express.urlencoded({ extended: true }));
|
||||
app.use("/", express.static("static"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue