Ticket: Localhost Server Connection Error with Fetch API
@Perrider Just created a ticket
Question: How can i solve that issue? The error: [Error] Could not connect to the server. [Error] Fetch API cannot load https://127.0.0.1/api/auth/oauth/GOOGLE due to access control checks. [Error] Failed to load resource: Could not connect to the server. (GOOGLE, line 0) [Error] Unhandled Promise Rejection: TypeError: Load failed (anonymous function) (page-f460d6c2c5d46418.js:1:4200)
Attempted: I have tried several things but getting error when triyng installing on localhost!
Working On: Trying to install it!
Using Postiz On: Docker-compose
Take it from here @Postiz
Question: How can i solve that issue? The error: [Error] Could not connect to the server. [Error] Fetch API cannot load https://127.0.0.1/api/auth/oauth/GOOGLE due to access control checks. [Error] Failed to load resource: Could not connect to the server. (GOOGLE, line 0) [Error] Unhandled Promise Rejection: TypeError: Load failed (anonymous function) (page-f460d6c2c5d46418.js:1:4200)
Attempted: I have tried several things but getting error when triyng installing on localhost!
Working On: Trying to install it!
Using Postiz On: Docker-compose
Take it from here @Postiz
11 Replies
Some how chagpt managed to get it to work but every channel i try to login getting error this is now the docker-compose.yml would be great if someone can help me out with this matter!
And it looks like this now i see instead of google login github and gitroom logo something must have gone wrong!
@Postiz please help @Perrider
Heya
You are seeing this because you need to set IS_GENERAL: true
i added it but i still get errors when i want to add a channel doesn't matter wich it is error!:
and if i click X this comes:
So IS_GENERAL is required to run Postiz self hosted, so that fixes one thing
Did you set your client ID and Secret in your environment variables for X, Google and Facebook?
You need to set those all up before adding a channel
Each of them are documented here; https://docs.postiz.com/providers
Oooh that is the issue I didn’t know I had to configure them that explains it!