You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 30, 2023. It is now read-only.
None Access-Control-Allow-Origin is set up for website
What customer visits is not the default website
Reproduce Steps
Visit any product page
Press Add to Cart button
Expect
AddToCart event is fired to Facebook
Actual
None event is fired to Facebook
The following error message presents in Browser Developer Tool > Console XMLHTTPRequest at 'https://XXX/fbe/Pixel/ProductInfoForAddToCart' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Investigation
The issue is at \Facebook\BusinessExtension\Helper\FBEHelper::getStore() function. It always return default store view instead of what customer is visiting.
The text was updated successfully, but these errors were encountered:
Precondition
Reproduce Steps
Expect
Actual
XMLHTTPRequest at 'https://XXX/fbe/Pixel/ProductInfoForAddToCart' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Investigation
The issue is at \Facebook\BusinessExtension\Helper\FBEHelper::getStore() function. It always return default store view instead of what customer is visiting.
The text was updated successfully, but these errors were encountered: