Blank sitemap due to problems with loading .xsl file

I am having problems with generating a sitemap. I think I know what the problem is, but don’t know how to solve it. Any help is highly appreciated:)

NOTE: All the URLs have a space after https, since I can’t have more than 1 url in a post

When I try to generate a sitemap (with yoast SEO), I get a blank sitemap. And, by blank, I mean just a white screen.
To understand what the problem is, I tried to look at the source code, and there is an error:

Unsafe attempt to load URL https ://skarry-coding.000webhostapp.com/main-sitemap.xsl from origin https ://www.skarrycoding.ml. Domains, protocols and ports must match.

My domain names are:

000webhost: https ://skarry-coding.000webhostapp.com
My own domain: https://www.skarrycoding.ml

So, I think the problem is that https ://www.skarrycoding.ml/sitemap_index.xml (place where my sitemap should be, and where my blank sitemap is) is loading the .xsl file from the 000webhostapp url instead of my own domain (https ://www.skarrycoding.ml/main-sitemap.xsl).

Another observation is that I kinda get the sitemap(I don’t really know what a sitemap looks like) by going to the url: https ://skarry-coding.000webhostapp.com/sitemap_index.xml
This is what I see there:


However, those links lead to blank pages (blank white pages).

My Questions:

  1. How can I fix this? How can I make https://www.skarrycoding.ml/sitemap_index.xml (currently blank sitemap) load in https://www.skarrycoding.ml/main-sitemap.xsl (.xsl file on my domain) instead of loading https://skarry-coding.000webhostapp.com/main-sitemap.xsl (.xsl file on 000webhostapp url)?
  2. And, also, what am I seeing on: https://skarry-coding.000webhostapp.com/sitemap_index.xml? Is that a valid sitemap? Asking because those links lead to blank pages, is that how it is supposed to be?

Is it a WordPress website or a coded website?


If it’s a coded website, we’ll create one manually.
Else, we’ll use a WordPress plugin.

It is a Wordpress website.

Tried using https://en-gb.wordpress.org/plugins/google-sitemap-generator/#description?