Skip to content

Commit

Permalink
Fix Google Sign-In popup
Browse files Browse the repository at this point in the history
  • Loading branch information
Caprico85 committed Feb 8, 2022
1 parent a1ae8fa commit dd2754f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/SmartHome.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ class GoogleSmartHome extends Aggregation(Auth, Devices, HttpAuth, HttpActions)
if (httpsPort > 0) {
// create express middleware
this.app = express();
this.app.use(helmet());
this.app.use(helmet({
// opener policy required for Google Sign-In popup
crossOriginOpenerPolicy: { policy: "same-origin-allow-popups" }
}));
this.app.use(cors());
this.app.use(morgan('dev'));
this.app.use(express.json());
Expand Down

0 comments on commit dd2754f

Please sign in to comment.