As I want to display my media files only on that domain only from where I uploaded using cloudinary API. Like if someone having that link, they cannot able to access the image/files directly from the browser. 2. How to create a time limited link of some images so the user can directly access the link in browser for short…
Here is my code; const fetchVideoAnalytics = async (publicId) => { try { const response = await fetch( `https://api.cloudinary.com/v1_1/${cloudName}/video/analytics/views?expression=video_public_id=${publicId}`, { method: "GET", headers: { mode: "no-cors", Authorization: `Basic ${basicAuth}`, }, } ); const analyticsData =…
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.