strapi-plugin-yt-clips
v0.0.2
Published
Select video clip.
Maintainers
Readme
strapi-plugin-yt-clips
CORS Settings
Make this changes in config/middlewares.ts file in your strapi project.
export default [
"strapi::logger",
"strapi::errors",
{
name: "strapi::security",
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
"connect-src": ["'self'", "https:"],
"img-src": [
"'self'",
"data:",
"blob:",
"market-assets.strapi.io",
"https://www.youtube.com",
],
"media-src": [
"'self'",
"data:",
"blob:",
"market-assets.strapi.io",
"https://www.youtube.com",
],
"frame-src": ["'self'", "https://www.youtube.com"],
upgradeInsecureRequests: null,
},
},
},
},
{
name: "strapi::cors",
config: {
origin: ["http://localhost:3000", "https://www.youtube.com"],
methods: ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"],
headers: ["Content-Type", "Authorization", "Origin", "Accept"],
keepHeaderOnError: true,
},
},
"strapi::poweredBy",
"strapi::query",
"strapi::body",
"strapi::session",
"strapi::favicon",
"strapi::public",
];
