
內容簡介
Fecommerce CORS Bridge 外掛使 Framer 網站和外掛能夠安全地訪問 WooCommerce REST API 端點,並僅為經批准的 Framer 相關域名和本地開發環境添加受控的 CORS 標頭。
【主要功能】
• 支援多個 Framer 相關域名
• 僅修改經批准的來源
• 處理預檢 OPTIONS 請求
外掛標籤
開發者團隊
原文外掛簡介
Fecommerce CORS Bridge enables Framer websites and plugins to access WooCommerce REST API endpoints securely.
The plugin adds controlled CORS headers only for approved Framer-related domains and local development environments.
Supported origins include:
https://framer.com
https://app.framer.com
https://*.plugins.framercdn.com
https://*.framercanvas.com
https://*.framer.app
https://*.framer.website
localhost environments
No other origins are modified.
Requirements
WordPress 5.8+
PHP 7.4+
WooCommerce plugin
How It Works
The plugin hooks into rest_api_init and replaces the default WordPress CORS headers with ones that permit Framer origins. It also handles preflight OPTIONS requests so the browser completes the handshake before sending actual data requests.
