hagopj13 / hagopj13/node-express-boilerplate

Content Security Policy

Open
#186 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.7k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Hello everyone,

I'm trying to make a swagger doc on my API. Unfortunately, when I try to execute the request from the interface, nothing happen and I got a console error message.

I think this is due to helmet parameters, though I can't figure it out.

I have crawled the internet to find something, but even when I specify `app.use(
helmet({
contentSecurityPolicy: false,
})
);` I still got the error.

![image](https://user-images.githubusercontent.com/67313281/157905786-9a03f15c-e4f7-4d0c-a8b9-b20b49f87bbf.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Swagger request execution failure and inspect the browser console error shown in the issue. Review the application's Helmet configuration and Content Security Policy handling; the issue provides no file, test, or confirmed expected behavior, so completion would require identifying the cause and making the Swagger request work.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, javascript, nodejs
Domain
api, backend, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.