Google API OAuth for Drive API is not working. Getting Error: origin_mismatch

后端 未结 2 676
-上瘾入骨i
-上瘾入骨i 2021-01-05 20:34

I am trying to run the quick start code of Real Time API of Google Drive. I believe I did everything right. But I am getting

Error: origin_mismatch

Request         


        
2条回答
  •  北荒
    北荒 (楼主)
    2021-01-05 21:09

    I had same problem with origin_mismatch.

    From: Create a client ID section localhost should work and worked for me after small testing.

    Origin in Google API i have:http://localhost
    URL to address bar in browser:localhost

    From the beginning this configuration not works, but after i tried write to address bar: 127.0.0.1->enter->origin_mismatch, it's correct and after again write localhost, now it's works.

    Tested same behaviour in Firefox 39 and Google Chrome 37.0.2062.120 Ubuntu 12.04 (281580) (64-bit).

提交回复
热议问题