Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
strapi-plugin-media-prefix
Advanced tools
Prepend media urls (images, files, audios, ) with your public url/media prefix on both Admin Panel and API's
Prepend media urls (images, files, audios, ) with your public url/media prefix on both Admin Panel and API's
npm install strapi-plugin-media-prefix
# or
yarn add strapi-plugin-media-prefix
Enable the plugin by adding the following lines of code in the file: ./config/plugins.ts
export default () => ({
"media-prefix": {
enabled: true,
},
});
or in the file: ./config/plugins.js
module.exports = {
'media-prefix': {
enabled: true,
},
};
The plugin get the public url/media prefix from the server config file: ./config/server.ts
so be sure to add url key in the server config file
in the file: ./config/server.ts
export default ({ env }) => ({
host: env('HOST', '0.0.0.0'),
port: env.int('PORT', 1337),
app: {
keys: env.array('APP_KEYS'),
},
url: env('PUBLIC_URL', 'http://localhost:1337'), // be sure to add this line
});
or in the file: ./config/server.js
module.exports = ({ env }) => ({
host: env('HOST', '0.0.0.0'),
port: env.int('PORT', 1337),
app: {
keys: env.array('APP_KEYS'),
},
url: env('PUBLIC_URL', 'http://localhost:1337'), // be sure to add this line
});
[I am very 😀 about every coffee!]
FAQs
Prepend media urls (images, files, audios, ) with your public url/media prefix on both Admin Panel and API's just in response without changing the relative path in database
The npm package strapi-plugin-media-prefix receives a total of 111 weekly downloads. As such, strapi-plugin-media-prefix popularity was classified as not popular.
We found that strapi-plugin-media-prefix demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.