Skip to content

Commit

Permalink
Merge pull request #234 from forio/samesite.re
Browse files Browse the repository at this point in the history
samesite to account for local dev
  • Loading branch information
lukwallace authored Aug 3, 2020
2 parents 9a80532 + e55f3a9 commit 691d5fb
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 13 deletions.
6 changes: 3 additions & 3 deletions dist/components/assignment/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://forio.com/tools/js-libs/2.13.1/components/assignment/assignment.css">
<link rel="stylesheet" href="https://forio.com/tools/js-libs/2.13.2/components/assignment/assignment.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js"></script>
</head>
Expand Down Expand Up @@ -73,8 +73,8 @@
</div>
</div>
<!-- make sure to include jquery, epicenter.js and assignment.js -->
<script src="https://forio.com/tools/js-libs/2.13.1/epicenter.min.js"></script>
<script src="https://forio.com/tools/js-libs/2.13.1/components/assignment/assignment.js"></script>
<script src="https://forio.com/tools/js-libs/2.13.2/epicenter.min.js"></script>
<script src="https://forio.com/tools/js-libs/2.13.2/components/assignment/assignment.js"></script>
<script>
new window.forio.MultiplayerAssignmentComponent({
el: '#assignment-component',
Expand Down
6 changes: 3 additions & 3 deletions dist/components/login/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">

<!-- login.css provides styling for the group selector pop over dialog -->
<link rel="stylesheet" href="https://forio.com/tools/js-libs/2.13.1/components/login/login.css">
<link rel="stylesheet" href="https://forio.com/tools/js-libs/2.13.2/components/login/login.css">

<!-- make sure to include jquery, epicenter.js and login.js -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://forio.com/tools/js-libs/2.13.1/epicenter.min.js"></script>
<script src="https://forio.com/tools/js-libs/2.13.1/components/login/login.js"></script>
<script src="https://forio.com/tools/js-libs/2.13.2/epicenter.min.js"></script>
<script src="https://forio.com/tools/js-libs/2.13.2/components/login/login.js"></script>
</head>
<body>
<!--
Expand Down
6 changes: 4 additions & 2 deletions dist/epicenter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/epicenter.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/epicenter.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/epicenter.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "epicenter-js",
"version": "2.13.1",
"version": "2.13.2",
"repository": {
"type": "git",
"url": "https://github.com/forio/epicenter-js-libs"
Expand Down
2 changes: 2 additions & 0 deletions src/store/cookie-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ module.exports = function (config) {
}
if (samesite) {
contents.push(`samesite=${samesite}`);
} else if (domain === '.local.forio.com') {
contents.push('samesite=lax');
} else {
contents.push('samesite=none');
}
Expand Down

0 comments on commit 691d5fb

Please sign in to comment.