- changed status to open
Hello
I new to this having issue, with stellar.toml. I can see it https://zioncoin.org.uk/.well-known/stellar.toml. However when I test in stellarid.io (Test your federation) I get the server Error (500) message.
I've put a single line .htaccess in the stellar.toml file as below
Header add Access-Control-Allow-Origin "*"
I haven't locked the asset, I've not trusted any anchors, neither have I complete (Transaction 6: Token Distribution Account: distribution account Operations:
Manage Offer - Sell:)
could this be the issue?
any help would me much appreciated.
Regards Nathanofzion
Comments (3)
-
repo owner -
repo owner - changed status to resolved
Fixed with pull request #40 in production
-
Hello Francois
Thank you very much for clearing this up, I now verified on the stellerid.io fed server. I was using the .htaccess in the toml fold. I thought I had an issue updating the root .htaccess as its for wp but it seems I can put put code at the end. and it work fine see below e.g.
(Please note this is for wordpress site, on linux platform running Apache) locate root .htaccess code:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase // RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] </IfModule>
END WordPress
<IfModule mod_headers.c> Header set Access-Control-Allow-Origin * </IfModule>
Hope this helps someone else too
- Log in to comment
OK, so it's true that this is a bug on my side because I should not show a server error when fed with a mis-formatted TOML file. I will fix this with a nicer error message.
Now the real source of the issue is actually your file
That piece of markup should not be in the TOML file:
It should be in a .htaccess file in the root of your website. As it is right now your TOML file is invalid and will break every Stellar transaction that references it.