strapi-plugin-oidc 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -880,7 +880,7 @@ function oauthService({ strapi: strapi2 }) {
880
880
  const sameSite = strapi2.config.get("admin.auth.cookie.sameSite", "lax");
881
881
  const cookieOptions = {
882
882
  httpOnly: true,
883
- secure: isProduction,
883
+ secure: isProduction && ctx.request.secure,
884
884
  overwrite: true,
885
885
  domain,
886
886
  path,
@@ -874,7 +874,7 @@ function oauthService({ strapi: strapi2 }) {
874
874
  const sameSite = strapi2.config.get("admin.auth.cookie.sameSite", "lax");
875
875
  const cookieOptions = {
876
876
  httpOnly: true,
877
- secure: isProduction,
877
+ secure: isProduction && ctx.request.secure,
878
878
  overwrite: true,
879
879
  domain,
880
880
  path,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-plugin-oidc",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "A Strapi plugin that provides OpenID Connect (OIDC) authentication functionality for the Strapi Admin Panel.",
5
5
  "strapi": {
6
6
  "displayName": "OIDC Plugin",