Skip to content

Custom Application Issue #3222

Answered by kark
nikhilkni asked this question in Q&A
Sep 21, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @nikhilkni,
Thank you for getting in touch.
You'd probably need to add wss: to the connect-src directive of the Content Security Policy like so:

 // custom-application-config.mjs
const config = {
  ...,
  headers: {
    csp: {
      'connect-src': ['wss:'],
    },
};

For further details and information, you can refer to the following resource:
https://docs.commercetools.com/custom-applications/api-reference/application-config#headerscsp

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nikhilkni
Comment options

Answer selected by nikhilkni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants