Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Force / path on session cookie #658

Merged
merged 1 commit into from
Jan 3, 2023
Merged

Conversation

paulomarg
Copy link
Contributor

@paulomarg paulomarg commented Jan 3, 2023

WHY are these changes introduced?

After doing OAuth on a non-embedded app, we set a cookie with the Shopify session id, but it seems that Chrome is defaulting the path for that cookie to /api/auth in the app template (i.e. the path that initiated the request).

WHAT is this pull request doing?

Forcing the path on the session cookie to be /, which enables any request in the app to use it.

Type of change

  • Patch: Bug (non-breaking change which fixes an issue)

Checklist

  • I have added a changelog entry, prefixed by the type of change noted above

@paulomarg paulomarg requested a review from a team as a code owner January 3, 2023 16:46
@paulomarg paulomarg force-pushed the fix_issue_with_session_cookie_path branch from 5ba1a3b to ea0a42c Compare January 3, 2023 16:47
@paulomarg paulomarg merged commit 712007e into main Jan 3, 2023
@paulomarg paulomarg deleted the fix_issue_with_session_cookie_path branch January 3, 2023 17:18
@shopify-shipit shopify-shipit bot temporarily deployed to production January 5, 2023 18:47 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants