HelpDesk

HelpDesk Support System

DTRadio - Online Radio, Podcasts & Live Events Flutter App (iOS - Android) with admin panel

Q:

Urgent: Flutter Web Deployment - CORS/Routing Conflict with Laravel Admin

private

Hello DTRadio Support Team,

I purchased DTRadio (CodeCanyon item #45657138) and have successfully deployed the Laravel admin panel and mobile applications. However, I'm encountering a critical deployment issue with the Flutter web version that your documentation does not adequately address.


Current Setup:

  • Laravel admin panel successfully deployed at: radio.nuvisionmedia.org
  • Mobile apps (iOS/Android) connecting to API successfully
  • Flutter web build completed without errors


The Problem: Your documentation instructs us to upload Flutter web build files to the Laravel

folder. However, this creates an immediate conflict:

  1. When Flutter index.html is uploaded to /public, Laravel's routing intercepts all root domain requests and redirects to /admin login
  2. The Flutter web app never loads - users only see the admin login screen
  3. Deploying to a separate subdomain (radioweb.nuvisionmedia.org) creates CORS errors because the documentation assumes same-domain deployment


What We've Attempted:

  • Uploading Flutter build to /public_html/radio/public/ (root domain) → Laravel routing conflicts
  • Deploying to separate subdomain → CORS policy blocks API calls
  • Modifying config/cors.php to include public/api/* paths → Still blocked
  • Checking app/Http/Kernel.php for CORS middleware registration


Critical Questions That Need Immediate Answers:

  1. What is the correct deployment structure? Should the web app be at root domain, subdomain, or subdirectory?
  2. If same domain: How do we configure Laravel routes to serve Flutter index.html at root while keeping admin at /admin? Is there a .htaccess rule or route configuration we're missing?
  3. If subdomain: What specific CORS configuration is required? The standard Laravel CORS config is not working with the /public/api/* path structure your API uses.
  4. Is there an updated deployment guide? The current documentation appears outdated and doesn't address real-world deployment scenarios where the admin panel is already live.


Current Impact:

  • Mobile apps work perfectly
  • Admin panel works perfectly
  • Web version completely non-functional due to deployment conflicts


We need specific, step-by-step instructions for deploying the Flutter web version in a production environment where the Laravel backend is already operational. The current documentation assumes a deployment scenario that creates immediate conflicts.

Please provide urgent assistance as we're blocked from launching the web version entirely.


System Details:

  • Flutter version: 3.29.3
  • Hostinger VPS hosting
  • PHP 8.2.29
  • Laravel backend functioning correctly
  • API endpoints tested and working from mobile apps


Thank you for your immediate attention to this matter.

Best regards

All Replies

Viewing 1 to 3 of total 3 topics

if you provide anydesk so we will connect via anydesk and fix it your issue.

Regards,
Mr. Chirag

Hello Angel,


.htaccess

<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
    Header set Access-Control-Allow-Methods "GET, OPTIONS"
    Header set Access-Control-Allow-Headers "*"
</IfModule>


add this code on your admin panel root folder in .htaccess file in bottom


then after restart the apache/negix

Regards,
Mr. Meet

Dear Angel Saint,

I hope this message finds you well.

Kindly share your Server Credentials with our team si that our developer can investigate the error and resolve the issue efficiently.


Rest assyred, your information will be handled with the utmost configentiality and security.

Regards,
Mr. Meet

Viewing 1 to 3 of total 3 topics

Support is Online

Office hours

Monday - Friday
10:00 AM - 06:00 PM
IST (GMT +5:30)

  • Office time

    00:00:00 AM

  • Your time

    00:00:0 AM

Explore Our Support Documentation

Whether you're troubleshooting an issue or looking for step-by-step guidance, our resources are designed to empower you with the knowledge you need