At the moment it's not possible to show ratebeer.com page in the iframe if web page uses https because it violates Content Security Policy (ratebeer.com does not support https). This can be one solution to use Oluttamo also in https-pages.
const BeerSchema = new mongoose.Schema({
breweryName: {
type: String,
required: true,
},
beerName: {
type: String,
required: true,
},
beerFullName: {
type: String,
required: true,
index: true,
},
ratebeerId: {
type: String,
required: true,
index: true,
},
overallRating: {
type: Number,
required: true,
},
styleRating: {
type: Number,
required: true,
},
beerStyle: {
type: String,
required: true,
},
createdAt: {
type: Date,
default: Date.now,
},
});
If we do like this, it's possible to show some information about the beer even user is on https://-page. Of course ratings need also update once in a while. That also enables settings like "Show only beers that have overall rating > 80" etc.