Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@isneezy/strapi-open-street-maps
Advanced tools
An Open Street Maps custom field for Strapi, allowing you to pick a location.
The Strapi Open Street Maps plugin enhances your Strapi content-types by providing a custom field for seamlessly integrating Open Street Maps. This feature empowers users to effortlessly select and retrieve location data within their content.
Upon implementing the open-street-maps
custom field in a Strapi content-type, the API response takes the following structure:
{
"data": {
"id": 1,
"attributes": {
"createdAt": "2023-12-02T11:28:20.689Z",
"updatedAt": "2023-12-02T11:28:39.133Z",
"location": {
"lat": -19.834256108664132,
"lng": 34.8413372039795
},
"title": "Hello"
}
},
"meta": {}
}
Ensure your Strapi version is v4 or higher to leverage the full capabilities of the Strapi Open Street Maps plugin.
To integrate the Strapi Open Street Maps plugin into your project, follow these steps:
npm install @isneezy/strapi-open-street-maps
For proper functioning of Open Street Maps, adjust the strapi::security middleware within the ./config/middlewares.js
file:
module.exports = [
- "strapi::security",
+ {
+ name: "strapi::security",
+ config: {
+ contentSecurityPolicy: {
+ useDefaults: true,
+ directives: {
+ "img-src": ["https://tile.openstreetmap.org"],
+ },
+ },
+ },
+ },
];
These configuration changes ensure that Open Street Maps assets are loaded correctly in your Strapi project.
FAQs
An Open Street Maps custom field for Strapi, allowing you to pick a location.
The npm package @isneezy/strapi-open-street-maps receives a total of 0 weekly downloads. As such, @isneezy/strapi-open-street-maps popularity was classified as not popular.
We found that @isneezy/strapi-open-street-maps 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.