Open jerryc127 opened 3 months ago
The API should work without with signing up for a pro plan. I was able to run your code without any issues only changing the website ID and API key. Have your tried running it with he various CORS headers?
This is the same case with self hosted.
I had to add these to apache config
Header unset Access-Control-Allow-Origin
Header always set Access-Control-Allow-Origin "<website you're trying to fetch from>"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header always set Access-Control-Max-Age "1000"
Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
RewriteEngine On
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=200,L]
@jerryc127 We've pushed out a few updates. Are you still having issues?
@jerryc127 We've pushed out a few updates. Are you still having issues?
yes, it another error
This issue is stale because it has been open for 60 days with no activity.
Is there any solution?
Describe the Bug
I am writing to inquire about a CORS policy issue I encountered while attempting to use the Umami Cloud API. I am currently registered under the free plan, and I am attempting to access the API with the following code:
However, when I attempt to execute this code, I am encountering the following error in the console:
could you provide guidance on how to resolve this issue?
Database
Umami Cloud
Relevant log output
No response
Which Umami version are you using? (if relevant)
No response
Which browser are you using? (if relevant)
Edge
How are you deploying your application? (if relevant)
No response