Skip to content

DP-46079: Replace hardcoded hostname validations with a config-driven approach for Gravity Forms iframe rendering#3306

Merged
tfleming-ma merged 3 commits intodevelopfrom
feature/DP-46079-Iframe-not-rendering-on-non-production-environments-subdomains
Apr 3, 2026
Merged

DP-46079: Replace hardcoded hostname validations with a config-driven approach for Gravity Forms iframe rendering#3306
tfleming-ma merged 3 commits intodevelopfrom
feature/DP-46079-Iframe-not-rendering-on-non-production-environments-subdomains

Conversation

@dstorozhuk
Copy link
Copy Markdown
Collaborator

Description:
Explain the technical implementation of the work done.

Jira: (Skip unless you are MA staff)
DP-****

To Test:

  • Add steps to test this feature

Peer Review Checklist

… approach for Gravity Forms iframe rendering

Refactored hostname validation logic across modules to use a single source of truth from `mass_utility.settings`. This ensures consistent handling of allowed hostnames, improving maintainability and resolving iframe rendering issues in non-production environments. Added changelog entry.

Signed-off-by: Dmytro Storozhuk <dima@itech4web.com>
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat April 2, 2026 19:13 Destroyed
…ngs` configuration

Introduced an update hook to define allowed hostnames for Gravity Forms in `mass_utility.settings`, ensuring configurability and consistent iframe rendering across environments.

Signed-off-by: Dmytro Storozhuk <dima@itech4web.com>
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat April 2, 2026 19:57 Destroyed
@tfleming-ma
Copy link
Copy Markdown
Collaborator

tfleming-ma commented Apr 3, 2026

@dstorozhuk Overall looks good. Only feedback I have is that I think I would call the setting gravity_forms_allowed_hostnames instead of gravity_form_allowed_hostnames.

@dstorozhuk
Copy link
Copy Markdown
Collaborator Author

@tfleming-ma I think you missed the proposed name

…names in mass_utility.settings and update related references
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat April 3, 2026 13:49 Destroyed
@tfleming-ma
Copy link
Copy Markdown
Collaborator

LGTM

@tfleming-ma tfleming-ma merged commit a8fb287 into develop Apr 3, 2026
7 checks passed
dstorozhuk added a commit that referenced this pull request Apr 3, 2026
…atables-accessibility

* refs/heads/develop: (28 commits)
  DP-46079: Replace hardcoded hostname validations with a config-driven approach for Gravity Forms iframe rendering (#3306)
  DP-44741: Drupal 11.3 + modules and libraries update (#3250)
  DP-45713 Add-filter-to-advanced-search-for-pages_documents-to-allow-users-to-search-for-multiple-entity_media-IDs (#3300)
  changelog update and remove old changelog files
  Dp 45686 fix form validation errors auto announce jaws (#3293)
  DP-45780-News-Page-Related-Links-Not-Rendering-for-Certain-Announcement-Types (#3299)
  DP-45633: Update datatables libraries used with CSV tables module (#3288)
  Prevented empty contact email/online links from rendering and required the online email field in contact information (#3296)
  DP-45721: Added related service to news (#3291)
  DP-45201: service card changes (#3297)
  DP-45855: fix-footer-url (#3298)
  Fixed microsite routeMatch causing issues on microsite views
  changelog update and remove old changelog files
  DP-39488-Print-styles-batch-3 (#3154)
  DP-44787: footer iteration (#3265)
  DP-45783 Update-Accesibility-Status-to-excluded-TBD-on-all-content-type-with-document-attachment (#3292)
  DP-45720: remove-rich-text-limit-service-pg (#3284)
  DP-45679: disable-unused-infodetail-field (#3285)
  DP-45563: Update report showing docs without files (#3286)
  DP-45715: Edit page header problem on pages in microsite (#3287)
  ...

# Conflicts:
#	composer.json
#	composer.lock
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