microsoft / microsoft/BotFramework-WebChat

Forced to use unsafe-inline CSP header

Open
#3,970 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bot Services customer-reported feature-request
Dominant language
HTML
Stars
1.8k
Forks
1.6k
Avg merge
22h 58m
Merged PRs (30d)
2

Description

Feature Request

We would like to remove the 'unsafe-inline' CSP header for security reasons. However, when we remove the 'unsafe-inline' header, we get the following error in the client.

image

sheet.browser.esm.js is used in the Emotion package, which is a dependency in botframework-webchat. This issue mentions a solution for this problem. Would it be possible to implement this?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked Emotion issue and examining how sheet.browser.esm.js is used through the Emotion dependency in botframework-webchat. Determine the requested integration change and verify that the client works with the CSP unsafe-inline header removed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.