Skip to content

feat: add vtdnntts-eu.readspeaker to connect directive#37

Closed
laravdiemen wants to merge 1 commit into
mainfrom
feat/readspeaker-connect-again
Closed

feat: add vtdnntts-eu.readspeaker to connect directive#37
laravdiemen wants to merge 1 commit into
mainfrom
feat/readspeaker-connect-again

Conversation

@laravdiemen
Copy link
Copy Markdown
Contributor

Ik dacht het gefixt te hebben in #34 maar nu heeft readspeaker weer een andere url bedacht.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Basic CSP policy to allow an additional ReadSpeaker EU endpoint that has started being used, preventing CSP connect-src violations for sites using ReadSpeaker.

Changes:

  • Add https://vtdnntts-eu.readspeaker.com to the ReadSpeaker connect-src allowlist.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Basic.php

// ReadSpeaker
->addDirective(Directive::CONNECT, ['https://cdn-eu.readspeaker.com', 'https://app-eu.readspeaker.com', 'https://vttts-eu.readspeaker.com', 'https://media-eu.readspeaker.com'])
->addDirective(Directive::CONNECT, ['https://cdn-eu.readspeaker.com', 'https://app-eu.readspeaker.com', 'https://vttts-eu.readspeaker.com', 'https://media-eu.readspeaker.com', 'https://vtdnntts-eu.readspeaker.com'])
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This CONNECT directive line is getting very long; consider formatting the allowed ReadSpeaker endpoints as a multi-line array (consistent with other multi-line directives in this file) to keep diffs readable and make future additions easier.

Suggested change
->addDirective(Directive::CONNECT, ['https://cdn-eu.readspeaker.com', 'https://app-eu.readspeaker.com', 'https://vttts-eu.readspeaker.com', 'https://media-eu.readspeaker.com', 'https://vtdnntts-eu.readspeaker.com'])
->addDirective(
Directive::CONNECT,
[
'https://cdn-eu.readspeaker.com',
'https://app-eu.readspeaker.com',
'https://vttts-eu.readspeaker.com',
'https://media-eu.readspeaker.com',
'https://vtdnntts-eu.readspeaker.com',
]
)

Copilot uses AI. Check for mistakes.
@laravdiemen
Copy link
Copy Markdown
Contributor Author

Besloten om het met een wildcard op te lossen want anders blijven we bezig. Ik sluit deze PR en maak een nieuwe aan.

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

Successfully merging this pull request may close these issues.

3 participants