Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesedmonston committed Nov 9, 2020
2 parents ea91247 + aa56e6a commit dd0c5c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 1.1.4 - 2020-11-09

### Improved

- Improved `isGraphiqlRequest` detection

## 1.1.3 - 2020-11-09

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jamesedmonston/graphql-authentication",
"description": "GraphQL authentication for your headless Craft CMS applications.",
"type": "craft-plugin",
"version": "1.1.3",
"version": "1.1.4",
"keywords": [
"craft",
"cms",
Expand Down
2 changes: 1 addition & 1 deletion src/GraphqlAuthentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ public function getUserFromToken(): User

public function isGraphiqlRequest(): bool
{
return StringHelper::contains(Craft::$app->getRequest()->getReferrer() ?? '', UrlHelper::cpUrl() . 'graphiql');
return StringHelper::contains((Craft::$app->getRequest()->getReferrer() ?? '') . 'graphiql', UrlHelper::cpUrl() . 'graphiql');
}

// Protected Methods
Expand Down

0 comments on commit dd0c5c5

Please sign in to comment.