-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
fetch() with URL object errors: "url.match is not a function" #25538
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
Labels
Comments
for a quick fix i added locally:
i guess for a real fix we want to use |
i guess this could be a proper fix
ps. i know nothing about symfony internals! |
or, to follow the
|
Status: reviewed |
fabpot
added a commit
that referenced
this issue
Dec 20, 2017
This PR was merged into the 3.3 branch. Discussion ---------- [WebProfilerBundle] Let fetch() cast URL to string | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #25538 | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> Taken from the fetch polyfill at https://github.com/github/fetch/blob/master/fetch.js#L325 Commits ------- 1a75e85 [WebProfilerBundle] Let fetch() cast URL to string
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to reproduce, open a page that has the symfony profiler, and then in browser devtools javascript console run following:
fetch("https://symfony.com")
works as intended, we get a CORS error.fetch(new URL("https://symfony.com"))
also gets the CORS error, but also a fatal errorurl.match is not a function
that points to a oneliner added by symfony.i guess its the symfony profiler assuming the url in fetch is a string...
The text was updated successfully, but these errors were encountered: