Publishing your Radsystems Project

This error has to do with the API link used, it is wrong from what can see on the browser console error. You are accessing the frontend from this link https://requiomarket.my.id which is correct, and the frontend is trying to communicate with the API on the same link https://requiomarket.my.id/api/auth/login which is not correct.

There are 2 ways to set up your frontend and API.

  1. Main domain and subdomain: The frontend will be on the main domain and API will be on the subdomain. You cannot put both on two different domains or subdomains, you will get the cors error. This method was used in the tutorial above.
Frontend: https://requiomarket.my.id/
API: https://backend.requiomarket.my.id/api/
  1. Folder path: In this case, you choose to use a domain for both frontend and API or a subdomain for both frontend and API.
Frontend: https://requiomarket.my.id/
API: https://requiomarket.my.id/public/api/

Note: When using HTTPS for the frontend HTTPS must be used for the backend link, and both SSL on this link must be valid. And if you use HTTP for the frontend, HTTP must be used on the backend.

If you still don’t get it, try rewatching the video again.

1 Like

i used your 1st way… i used sub domain called “api.requiomarket.my.id” which is my domain is “requiomarket.my.id”. but i will try with 2nd way. thanks for your response, willvin

[EDIT]: i have try again and still the problem is CORS policy
“Access to XMLHttpRequest at ‘https://backend.requiomarket.my.id/api/auth/login’ from origin ‘https://requiomarket.my.id’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”

Send me a PM with your Anydesk ID.

can you share the link of the video please ?

The video is the first item of this page.

Hello Willvin,

I’m very frustrated in my trial period with RADSystem 8.1.8, since I can’t solve my publishing error, I’m facing different errors trying to publish it on a local network with XAMPP and an external hosting service too. I followed your video step by step, and research on google, but I didn’t find a solution. I’m pretty sure my error is with the API path, but I don’t know how to make it works.

Changing different API paths, I have obtained different errors, such as “Access to XMLHttpRequest at “” from origin ‘url’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”
or simply the 404 error “Failed to load resource: the server responded with a status of 404 (Not Found)”.

I’m puzzled, because in the case of the URL for the API in runtime, it specifies something like “… //index?page=1&limit=10 n.html” And sure enough that folder of each page, does not exist in the API path. That already makes me doubt if it is a problem of how I am doing the publication or it could be a bug of RADSystem.

I’m using PHP-Laravel Bkend FW with Quasar UI FW.

PS. Everything works fine in developer mode.

Thanks

Make sure you have followed this instruction properly. You cannot have the front end on a different domain and the backend on a different domain.

Please see below snapshot, I am facing issue when I publish Laravel Quasar Vue Mobile App

OS: Windows 10
Api Platform: PHP-Laravel
App Platform: Quasar Vue, Mobile App

Follow the instructions here Radsystems Tutorial - Installing Radsystems Studio project requirements - Tutorials - Radsystems Forum on setting up radsystems studio for mobile development.

Hi. Do you have a step by step tutorial in publishing phprad classic online?