As I understand, first you need to load the page, and then read its title, but already at loading, which I do so
const response = await fetch(url, {method: 'GET',mode: 'cors',});
I get an error TypeError: Filed to fetch
As I understand, first you need to load the page, and then read its title, but already at loading, which I do so
const response = await fetch(url, {method: 'GET',mode: 'cors',});
I get an error TypeError: Filed to fetch
You need to use requestUrl()
instead of fetch
to bypass CORS restrictions:
You’d then need to parse the resulting .text
property for the HTML <title>
tag.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.