import express from 'express'; import mongoose from 'mongoose'; import cors from 'cors'; import Article from './Schema/Article.js' const app = express(); import fileUpload from 'express-fileupload'; import { v2 as cloudinary } from 'cloudinary'; import { config as dotenvConfig } from 'dotenv'; dotenvConfig(); // Configure…
When i upload image to cloudinary its show cors error. The error happening only when i hosted the backend server. Its perfectly worked in localhost
How do i clear this errors? -Create:1 Access to fetch at 'https://api.cloudinary.com/v1_1/digqqowwh' from origin 'https://ticket.luvnft.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to…
I am trying to create a download image button. I've tried several ways and still having trouble with CORS. Does Cloudinary support CORS headers? I am using Javascript/NodeJS. I have tried using a fetch request with CORS headers but it seems like Cloudinary isn't reciprocating. Any help on this? Thanks.