Close

Error with Nopcommerce 4.30

jirwin
3 years ago
#21186 Quote
Avatar
  • 8
I attempted to set up the facebook shop using Nopcommerce 4.30.


No products show up on my facebook page and instead I see a couple of errors in the console as follows:



Has anyone encountered/fixed this issue?

- Refused to display 'https://www.xxxxxx.xxx/facebook/store/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
- puLnu6Boe-j.js?_nc_x=k-fjsMawAWG:108 Uncaught TypeError: a.isEmpty is not a function
    at a [from isFacebookURI] (puLnu6Boe-j.js?_nc_x=k-fjsMawAWG:108)
    at a [from isFacebookishURI] (-TaJSwvYO7Z.js?_nc_x=k-fjsMawAWG:7)
    at Object._verifyWindowMessage (-TaJSwvYO7Z.js?_nc_x=k-fjsMawAWG:8)
    at Object._handleWindowMessageToParent (-TaJSwvYO7Z.js?_nc_x=k-fjsMawAWG:8)
Boyko
3 years ago
#21187 Quote
Avatar
  • Moderator
  • 1570
jirwin wrote:
I attempted to set up the facebook shop using Nopcommerce 4.30.


No products show up on my facebook page and instead I see a couple of errors in the console as follows:



Has anyone encountered/fixed this issue?

- Refused to display 'https://www.xxxxxx.xxx/facebook/store/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
- puLnu6Boe-j.js?_nc_x=k-fjsMawAWG:108 Uncaught TypeError: a.isEmpty is not a function
    at a [from isFacebookURI] (puLnu6Boe-j.js?_nc_x=k-fjsMawAWG:108)
    at a [from isFacebookishURI] (-TaJSwvYO7Z.js?_nc_x=k-fjsMawAWG:7)
    at Object._verifyWindowMessage (-TaJSwvYO7Z.js?_nc_x=k-fjsMawAWG:8)
    at Object._handleWindowMessageToParent (-TaJSwvYO7Z.js?_nc_x=k-fjsMawAWG:8)


Hi,

You need to remove this line from the Web.config file:

 <add name="X-Frame-Options" value="SAMEORIGIN" />
Regards,
Nop-Templates.com Team
jirwin
3 years ago
#21188 Quote
Avatar
  • 8
Boyko wrote:
I attempted to set up the facebook shop using Nopcommerce 4.30.


No products show up on my facebook page and instead I see a couple of errors in the console as follows:



Has anyone encountered/fixed this issue?

- Refused to display 'https://www.xxxxxx.xxx/facebook/store/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
- puLnu6Boe-j.js?_nc_x=k-fjsMawAWG:108 Uncaught TypeError: a.isEmpty is not a function
    at a [from isFacebookURI] (puLnu6Boe-j.js?_nc_x=k-fjsMawAWG:108)
    at a [from isFacebookishURI] (-TaJSwvYO7Z.js?_nc_x=k-fjsMawAWG:7)
    at Object._verifyWindowMessage (-TaJSwvYO7Z.js?_nc_x=k-fjsMawAWG:8)
    at Object._handleWindowMessageToParent (-TaJSwvYO7Z.js?_nc_x=k-fjsMawAWG:8)


Hi,

You need to remove this line from the Web.config file:

 <add name="X-Frame-Options" value="SAMEORIGIN" />



Thanks for helping so quickly. I changed to the following in my web.config and it seems to work.

 <add name="X-Frame-Options" value="allow-from https://www.facebook.com/" />