fbpx

Stay Home & Grab 40% Discount COVID19Grab Now

Welcome, Guest
Username: Password: Remember me

TOPIC: Astroid Framework rendering json script token?

Astroid Framework rendering json script token? 1 month 5 days ago #20616

  • GodOfWar
  • GodOfWar's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: 0
Hi, first of all, congratulations on the framework, it's very good.

I noticed that in a fresh Joomla installation a token script is rendered when login form is published, if you unpublish it the script disappears.

But when Astroid Framework is installed, it comes back, I'm talking about this script:
<script type="application/json" class="joomla-script-options new">{"csrf.token":"XXXXXXXXXXXXXXXXXXXXXXX","system.paths":{"root":"\/joomla","base":"\/joomla"}}</script>

I don't know much about it, I wonder what it is exactly and why it renders with astroid even if login form is not published.
Greetings.
The administrator has disabled public write access.

Astroid Framework rendering json script token? 1 month 5 days ago #20619

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 3461
  • Thank you received: 511
  • Karma: 92
Hello,

What page do you see the code on?

Thanks,
Chetan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.

Astroid Framework rendering json script token? 1 month 5 days ago #20621

  • GodOfWar
  • GodOfWar's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: 0
It's on every page, on this website too.

-Install Joomla 3.9.14, the code is there. (but with more syntax related to keepalive.js)
-Unpublish login form, the code disappears.
-Install Astroid Framework + Astroid template zero, the code is back even if the login form is still unpublished.
The administrator has disabled public write access.

Astroid Framework rendering json script token? 4 weeks 14 hours ago #20728

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 3461
  • Thank you received: 511
  • Karma: 92
Hi,

My apologies for the delay in reply here. I went on searching for this and found the true meaning of life instead (kidding, ha ha).

It looks like the token is added by Joomla's com_ajax component and is for Ajax requests. Nothing to do with Astroid in particular. A Quick google search shows a lot of entries for the same stuff.

Let me know if you need anything else here.
Thanks,
Chetan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.
Moderators: chandandeep
Time to create page: 0.275 seconds