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

Safari cross origin fix #2222

Merged
merged 4 commits into from
Jul 31, 2020
Merged

Safari cross origin fix #2222

merged 4 commits into from
Jul 31, 2020

Conversation

guybedford
Copy link
Member

Fixes #2220 by restricting setting the cross origin attribute only on actual cross origin requests.

/cc @LarsDenBakker let me know if this works for you.

@github-actions
Copy link

github-actions bot commented Jul 30, 2020

core

File by file impact

File Transform Diff master cross-origin-fix Event
dist/s.js none +245 21,651 21,896 changed
gzip +119 6,079 6,198
brotli +106 5,248 5,354
dist/s.min.js none +48 6,611 6,659 changed
gzip +26 2,655 2,681
brotli +24 2,377 2,401
dist/system.js none +245 32,097 32,342 changed
gzip +114 8,583 8,697
brotli +98 7,444 7,542
dist/system.min.js none +48 10,636 10,684 changed
gzip +25 4,101 4,126
brotli +19 3,666 3,685
extras

File by file impact

Pull request have no impact on extras files.

Generated by github pull request filesize impact

@LarsDenBakker
Copy link
Contributor

That's a clever fix, thanks a lot. It should work for me from the looks of it, I'll test it out tomorrow at work.

Copy link
Collaborator

@joeldenning joeldenning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, a few questions.

build-node.js Outdated Show resolved Hide resolved
src/features/script-load.js Outdated Show resolved Hide resolved
src/features/script-load.js Show resolved Hide resolved
Copy link
Collaborator

@joeldenning joeldenning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

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.

Cross-origin anonymous gives problems on Safari
3 participants