nukiko12
nukiko12

Reputation: 149

Computed properties sanitization in VueJS

It's safe to append an URL in Vue using a computed property if the link is provided by an external API service?

For example:

<img :src="imgURL">

VueJS

computed: {
 imgURL(){
  return `https://exampleur.com${poster.4by4}`
 }
}

Upvotes: 1

Views: 261

Answers (1)

Atif Zia
Atif Zia

Reputation: 793

I am here to confirm that you can use computed property as image source and it is safe

Upvotes: 1

Related Questions