Hey there,
I am building an internal extension for my own directus, not to be used publicly. I originally performed a lot of requests to/from a URL that is another business I work with wthin Directus Flows and had no issues. I started developing a Module Extension that was able to do much more that what I was doing already. I wanted to be able to send data to this same URL but now I get CORS issues stating:
from origin 'http://localhost:8055' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
It is localhost because I am still testing the extension from a local directus instance. I am just performing a standard fetch GET request in the module just to test the connection. Does anyone know how to fix this issue without having to request assistance/access from the requested URL as they will take forever to respond.