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

Change link.origin with link.host for compatibility with firefox. #41

Merged
merged 3 commits into from
Dec 3, 2013

Conversation

o-bo
Copy link
Contributor

@o-bo o-bo commented Dec 3, 2013

I found that link.origin crashed with firefox : 'undefined method'.
I changed it for link.host and I needed to remove 'https://' from urls in tests.

@marcoow
Copy link
Member

marcoow commented Dec 3, 2013

Too bad Firefox doesn't support it. The link origin (which is relevant for CORS) though is made up of protocol, host and port so you'd have to join these 3 and perform the comparison on that joined string then.

marcoow added a commit that referenced this pull request Dec 3, 2013
Change link.origin with link.host for compatibility with firefox.
@marcoow marcoow merged commit 80f4e22 into mainmatter:master Dec 3, 2013
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.

2 participants