@devix-tecnologia/directus-extension-mapgrid 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -12
- package/dist/index.js +2 -2
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -18,21 +18,9 @@ This project is a Layout-type extension for Directus, designed for viewing conte
|
|
|
18
18
|
docker compose up
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
> [!IMPORTANT]
|
|
22
|
-
> _The docker-compose used in this project is configured to allow iframes from any domain. In production, you should only allow trusted domains._
|
|
23
|
-
>
|
|
24
|
-
> In the previous version, the Leaflet map was used. For it to work properly, the following CSP (Content Security Policy) settings must be configured correctly (this is no longer necessary in the current version that uses Maplibre-gl, but here's a note):
|
|
25
|
-
|
|
26
|
-
```yaml
|
|
27
|
-
CONTENT_SECURITY_POLICY_DIRECTIVES__FRAME_SRC: "*" # allows iframes from any domain
|
|
28
|
-
CONTENT_SECURITY_POLICY_DIRECTIVES__IMG_SRC: "self http://0.0.0.0:8055 https: https://*.tile.openstreetmap.org data:" # allows map images
|
|
29
|
-
DIRECTUS_HTTP_HEADERS__CONTENT_SECURITY_POLICY: "default-src *; img-src * 'self' data: https:; script-src 'self' 'unsafe-inline' 'unsafe-eval' *; style-src 'self' 'unsafe-inline' *" # sets a global security policy for your application via the Content-Security-Policy HTTP header
|
|
30
|
-
```
|
|
31
|
-
|
|
32
21
|
## 📌 Important Links
|
|
33
22
|
|
|
34
23
|
- [Directus Quickstart](https://docs.directus.io/getting-started/quickstart.html) (under the Docker Installation tab)
|
|
35
24
|
- [How to Create an Extension](https://docs.directus.io/extensions/creating-extensions.html)
|
|
36
25
|
- [Access Directus Services](https://docs.directus.io/extensions/services/introduction.html)
|
|
37
26
|
- [Access Stored Collection Items](https://docs.directus.io/extensions/services/accessing-items.html)
|
|
38
|
-
|