access-control-allow-origin php header example
Example 1: header cros orgin using php
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: *");
...
Example 2: how to use cros
npm i cors
const cors = require('cors');
const express = require('express');
const app = express();
app.us(cors());