Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Nobody has claimed this yet.

Assessment

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

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.

Description

triage

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.

Dominant language
MDX
Stars
621
Forks
3.2k
Avg merge
1d 2h
Merged PRs (30d)
86

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.

More from ionic-team/ionic-docs

All issues in ionic-team/ionic-docs

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.