hac_storefront_autofix
Fix SAP Composable Storefront headless readiness by injecting BaseSite URL patterns, permitting CORS origins, verifying OAuth2 credentials, and flushing Region Cache.
Instructions
One-click automated repair for Composable Storefront (Spartacus) headless readiness issues:
Injects matching frontend origin regex into BaseSite.urlPatterns
Dynamically permits frontend origin in CORS (corsfilter.commercewebservices.allowedOrigins)
Verifies OAuth2 client credentials
Flushes Region Cache for real-time frontend routing
Args: site_id: Target BaseSite UID (e.g. 'powertools-spa') storefront_url: Frontend URL Origin (e.g. 'http://localhost:4200' or 'https://localhost:4200') lang: Output language ('zh' or 'en')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | zh | |
| site_id | No | powertools-spa | |
| storefront_url | No | http://localhost:4200 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |