project_ai_mern_image_generation icon indicating copy to clipboard operation
project_ai_mern_image_generation copied to clipboard

Bartender API access denied

Open akshaykps opened this issue 2 years ago • 1 comments

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.

akshaykps avatar Jan 22 '23 12:01 akshaykps

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!

TidbitsJS avatar Jan 26 '23 08:01 TidbitsJS