Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems appending directives #82

Open
CarstenHoyer opened this issue Dec 4, 2022 · 0 comments
Open

Problems appending directives #82

CarstenHoyer opened this issue Dec 4, 2022 · 0 comments

Comments

@CarstenHoyer
Copy link

Hi, I have the following:

const securityMiddleware = [
    nextSafe({
        isDev,
        contentSecurityPolicy: {
            "connect-src": ["https://*.segment.com/"],
        },
    }),
    strictDynamic({}),
];

export default chainMatch(isPageRequest)(...securityMiddleware);

But segment.com is not being appended to the connect-src directives. I have also tried with disableCsp and using the cap middleware, but then I run into other issues (I need to build the whole directive myself).

What Am I doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant