Hello, when I try with postman, the backend I prepared returns the service token, but when I use your vue frontend with axios, I get a cors error. I used docker as webserver nginx virtualization and all my apps are behind reverse proxy on the same server. I would appreciate it if you could help By the way, I have different domains for each application.
@Lauris and @Gustavo
Thank you both, my problem is solved. Best regards.
Hi,
Glad to hear that. All the best with your project!
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Hi Ibrahim,
You might want to check the params AllowOrigins, AllowHeaders, and AllowMethods on your server application, those params was blocking fetch calls from my front-end, as soon as configured, it worked.
Best Regards!
Hi,
Most likely this error is because your server is located on a different URL.
If you are using version Metronic >8.1.6 then you can fix this by setting devServer.proxy property in vue.config.js
, if you use the latest version then use server.proxy in vite.config.js
.
Regards,
Lauris Stepanovs,
Keenthemes Support Team