Facebook Authentication - Unsafe JavaScript attempt to access frame with URL

后端 未结 7 1170
别那么骄傲
别那么骄傲 2021-01-11 20:14

I am trying to implement Facebook Login System into my website.

While it try to connect to facebook, I get an error from console log:

Unsafe JavaScri         


        
7条回答
  •  伪装坚强ぢ
    2021-01-11 20:29

    You can tweak your localhost machine to appear to be of the domain that facebook requires.

    On linux or OSX, add an entry to /etc/hosts; on windows, edit c:\windows\system32\drivers\etc\hosts. Add an entry like this:

    127.0.0.1 local-dev.mydomain.com local-dev
    

    Where "mydomain.com" is the domain with which your FB app ID is registered.

提交回复
热议问题