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

JSON over HTTP Transport #34

Closed
mitsuhiko opened this issue Apr 12, 2023 · 2 comments
Closed

JSON over HTTP Transport #34

mitsuhiko opened this issue Apr 12, 2023 · 2 comments

Comments

@mitsuhiko
Copy link
Contributor

The current spec has this in it:

XSSI attacks could potentially make source maps available to attackers by doing a direct script src to a source map after overriding the Array constructor. This can be effectively prevented by preprending a JavaScript syntax error to the start of the response.

Thus when delivering source maps over HTTP, servers may prepend a line starting with the string “)]}'” to the sourcemap. If the response starts with this string clients must ignore the first line.

Does this still carry relevancy in the current day and age and is this consistently being implemented? I haven't seen source maps actually being prefixed with that character sequence.

@littledan
Copy link
Member

littledan commented Jun 14, 2023

Rob, Justin and Jaro report that this is common enough that we can't remove it.

@mitsuhiko
Copy link
Contributor Author

This is resolved now. A note has been added to the spec as discussed.

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

No branches or pull requests

2 participants