Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add access-control-allow-origin in node js

// Install cors package: npm install cors
const express = require("express");
const app = express();
const cors = require('cors');
app.use(cors());
// your http request should work after this
Source by devarama.com #
 
PREVIOUS NEXT
Tagged: #add #node #js
ADD COMMENT
Topic
Name
1+4 =