I’m making a Flutter Web App with which we can enable or disable the workflows in n8n.
Im making a GET Request to
http://my_domain/rest/workflows to get the workflows. I also passed the basicAuth value in the header.
But while making the Request I get the
It works well on android app (mobile version of flutter), but on web version of flutter it just gives me this error. I searched about this and got that its related to CORS.
Also I got a potential solution, but dont know how we can add into n8n.
Added .htaccess file in web folder <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule>