Skip to content

Content Security Policy may block Plugin functionality #4283

@arno-st

Description

@arno-st

I don't have the case number, but a while ago some modification where made to allow Cacti (the browser) to access some script from outside of the local server.
A field exit under config general to list the name of the destination.
So far so good, and It work's almost in all case.

I change my plugin to display a map using mapbox GL instead of mapbox JS, and it's not working anymore.
When I access this page from outside it's working,but not inside.
I try to add a few site to the allowed list:
unpkg.com *.mapbox.com *.googleapis.com *.cloudflare.com *.gstatic.com
but still the map won't dispaly.

File attached with the output I got on the console of the browser

Any solution here ? without having to tweek the coode on every update ?

thanks

Cacti 1.2.17

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementGeneral tag for an enhancementnot a bugNot a bug as determined by dev

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions