Skip to content

Conversation

@HappyPaul55
Copy link
Contributor

This pull request updates the API configuration in the manifest.json file to support injecting WooCommerce API credentials into request headers. This makes authentication more flexible and secure.

Authentication improvements:

  • Added a settingsInjection block to the API endpoint configuration, allowing consumer_key and consumer_secret to be injected into the Authorization header for requests to wp-json/wc/v3/.*.

@HappyPaul55 HappyPaul55 requested a review from a team as a code owner November 14, 2025 12:13
@HappyPaul55 HappyPaul55 requested review from Copilot and removed request for a team November 14, 2025 12:13
@github-actions
Copy link

github-actions bot commented Nov 14, 2025

Copy link

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 adds a settingsInjection configuration to the WooCommerce app manifest to enable server-side injection of API credentials into request headers. This moves authentication handling from client-side template strings to proxy-level injection for improved security.

  • Introduced settingsInjection block in the proxy whitelist configuration
  • Configured consumer_key and consumer_secret to be injected into the Authorization header for WooCommerce API endpoints

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

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.

2 participants