Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sitecore-jss-proxy][sitecore-jss-nextjs] Fix for getCSPHeader function #1972

Merged
merged 9 commits into from
Nov 20, 2024

Conversation

yavorsk
Copy link
Contributor

@yavorsk yavorsk commented Nov 14, 2024

Description / Motivation

This PR fixes the getCSPHeader function so that it returns proper value for the CSP header when JSS_ALLOWED_ORIGINS lists multiple origins delimited with comma.

Testing Details

  • Unit Test Added
  • Manual Test/Other (Please elaborate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@yavorsk yavorsk requested review from illiakovalenko and art-alexeyenko and removed request for illiakovalenko November 14, 2024 13:27
@stasmaxymov
Copy link
Contributor

@yavorsk It seem analogues function from NextJs package should have the same problem:

@yavorsk yavorsk changed the title [sitecore-jss-proxy] Fix for getCSPHeader function [sitecore-jss-proxy][sitecore-jss-nextjks] Fix for getCSPHeader function Nov 20, 2024
@yavorsk yavorsk changed the title [sitecore-jss-proxy][sitecore-jss-nextjks] Fix for getCSPHeader function [sitecore-jss-proxy][sitecore-jss-nextjs] Fix for getCSPHeader function Nov 20, 2024
Copy link
Contributor

@illiakovalenko illiakovalenko left a comment

Choose a reason for hiding this comment

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

👍

yavorsk and others added 2 commits November 20, 2024 10:29
Co-authored-by: Illia Kovalenko <23364749+illiakovalenko@users.noreply.github.com>
Co-authored-by: Illia Kovalenko <23364749+illiakovalenko@users.noreply.github.com>
@yavorsk yavorsk merged commit 03cfa5f into dev Nov 20, 2024
1 check was pending
@yavorsk yavorsk deleted the feature/JSS-4561 branch November 20, 2024 08:30
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