ionic-team / ionic-team/ionic-docs

feat: add ionic's wanted/basic Content-Security-Policy config into the docs (or src/index.html?)

Open
#1,573 6 comments 1 reaction 0 assignees View on GitHub
triage
Dominant language
MDX
Stars
621
Forks
3.2k
Avg merge
1d 2h
Merged PRs (30d)
86

Description

# Feature Request

**Ionic version:**
[x] **5.x**

**Describe the Feature Request**
Add information about how to support new protocols on `Content-Security-Policy ` without break Ionic.

**Additional Context**
I want to support the cdvfile protocol and it requires to add cdvfile: to the `Content-Security-Policy` meta tag. Since no one exist I have to play adding and removing tags until I get no more errors in the console.

I was not able to find what was the current "default" `Content-Security-Policy` by an Ionic 5 project.

This is also needed to support web sockets.

Contributor guide

Open the contributing guide

Research direction

Start by inspecting src/index.html and the Ionic 5 documentation for the current Content-Security-Policy setup. Document the default policy and explain how to add cdvfile and WebSocket protocols without breaking it, with the final location resolved between the docs and src/index.html.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
documentation, security
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.