adrianhajdin / project_ai_mern_image_generation

Build and Deploy a Full Stack MERN AI Image Generation App MidJourney & DALL E Clone
https://jsmastery.pro
1.09k stars 303 forks source link

Bartender API access denied #6

Open akshaykps opened 1 year ago

akshaykps commented 1 year ago

I had an error while opening http://localhost:8080/api/v1/dalle "Bartender API access denied." because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'frame-src' was not explicitly set, so 'default-src' is used as a fallback.

TidbitsJS commented 1 year ago

Hey @akshaykps, if you're using the keys mentioned in the YouTube video, kindly replace them with yours. Apparently, many people used the same keys we used for the project, thus leading to free credits exhaustion. If you create your account, you'll get these free credits. Paying after that is your choice, but initially, you don't have to pay or use any credit card.

These are the keys you'll need:

  1. OpenAI API key
  2. Cloudinary Keys
  3. MongoDB URL

Please create your account and use them in both server-side code and the deployment (Do not forget to add these keys as Environment variables when you start to deploy the server on Render)

Thank you!