Filament Laravel with front React

I have the following setup:
• Domain:
domain.com.br

• My Filament admin is running at
domain.com.br/­­­_/

• My Laravel API is located at
domain.com.br/_/api/v1

• My frontend is at
domain.com.br


VPS directory structure (root):
• backend (Laravel)
• public_html (contains index.html for React and a symbolic link, "underscore": pointing to backend/public)

The issue:
When I submit the login form(filament login), the system returns an error related to the index.html file from public_html:

Uncaught (in promise) SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
Was this page helpful?