x3innovation / X3F1Studio

X3F1 Studio provides a realtime collaborative user interface for developing F1 application
0 stars 0 forks source link

F1 Sharing is not working #21

Open x3innovation opened 10 years ago

1730wang commented 10 years ago

The error reads:

Refused to display 'https://drive.google.com/share?id=0BwshRFlOuoFWUk16X0FkbzM5aTA&foreignServi…sage&appId=serene-vim-452&embedOrigin=https%3A%2F%2Fx3innovation.github.io' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

the http header from https://drive.google.com/share has X-Frame-Options set to "SAMEORIGIN", my understanding is that the browser should only accept the content if its parent is from drive.google.com. But in our case, the parent is from x3innovation.github.io.

https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options

I googled around, there are people having this problem, they say to change the settings in Google developer console, I did the same but it didn't work.