Skip to content

Add the ability to exclude files from URL canonicalization. - #11400

Merged
tobz merged 2 commits into
masterfrom
PERF-258
Feb 2, 2016
Merged

Add the ability to exclude files from URL canonicalization.#11400
tobz merged 2 commits into
masterfrom
PERF-258

Conversation

@tobz

@tobz tobz commented Feb 2, 2016

Copy link
Copy Markdown
Contributor

To be able to more easily deal with same-origin issues, due to some course assets being loaded in an iframe, we're adding the ability to specify file extensions that should be excluded from URL canonicalization. The default value is simply 'html', which means we won't rewrite asset links that point to files ending in .html. Thus, they'll be loaded from the same origin as the parent page, and voila, no SOP issues.

To be able to more easily deal with same-origin issues, due to some course assets being loaded in an iframe, we're adding the ability to specify file extensions that should be excluded from URL canonicalization.  The default value is simply 'html', which means we won't rewrite asset links that point to files ending in .html.  Thus, they'll be loaded from the same origin as the parent page, and voila, no SOP issues.
@tobz

tobz commented Feb 2, 2016

Copy link
Copy Markdown
Contributor Author

/cc @ormsbee

@tobz

tobz commented Feb 2, 2016

Copy link
Copy Markdown
Contributor Author

jenkins run python

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this add the . before the file types, to prevent accidental collisions? I honestly can't think of a real-world case where it would be a problem, but in the abstract, you wouldn't want ml to exclude html files.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that's a good point. I'll add that.

@ormsbee

ormsbee commented Feb 2, 2016

Copy link
Copy Markdown
Contributor

Done with my pass.

@ormsbee

ormsbee commented Feb 2, 2016

Copy link
Copy Markdown
Contributor

👍

tobz added a commit that referenced this pull request Feb 2, 2016
Add the ability to exclude files from URL canonicalization.
@tobz
tobz merged commit 78370f3 into master Feb 2, 2016
@tobz
tobz deleted the PERF-258 branch February 2, 2016 16:28
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