Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Include the protocol in the origins check #3198

Merged
merged 1 commit into from
Mar 10, 2018

Conversation

darrachequesne
Copy link
Member

Previously, the protocol was not taken in account, which caused the following behaviour:

io.origins('https://foo.example.com:443'); // ok as a string
io.origins(['https://foo.example.com:443'); // not ok as an array

Fixes #3190

The kind of change this PR does introduce

  • a bug fix
  • a new feature
  • an update to the documentation
  • a code change that improves performance
  • other

Current behaviour

New behaviour

Other information (e.g. related issues)

Previously, the protocol was not taken in account, which caused the following behaviour:

```js
io.origins('https://foo.example.com:443'); // ok as a string
io.origins(['https://foo.example.com:443'); // not ok as an array
```

Fixes socketio#3190
@darrachequesne darrachequesne merged commit 1f1d64b into socketio:master Mar 10, 2018
@darrachequesne darrachequesne deleted the fix/origin-protocol branch March 10, 2018 07:56
@darrachequesne darrachequesne added this to the 2.1.0 milestone Mar 10, 2018
dzad pushed a commit to dzad/socket.io that referenced this pull request May 29, 2023
Previously, the protocol was not taken in account, which caused the following behaviour:

```js
io.origins('https://foo.example.com:443'); // ok as a string
io.origins(['https://foo.example.com:443'); // not ok as an array
```

Fixes socketio#3190
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

io.origins() does not take an array of strings
1 participant