Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portainer CORS Policy API block #397

Closed
traliotube opened this issue Mar 16, 2022 · 1 comment
Closed

Portainer CORS Policy API block #397

traliotube opened this issue Mar 16, 2022 · 1 comment

Comments

@traliotube
Copy link

Hi, when I added my #Portainer API key to homer dashboard, this is the error

image

Access to fetch at 'https://portainer.bunnylab.tk/api/endpoints' from origin 'https://bunnylab.tk' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: 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.

Here's my config.yml

  - name: "Portainer"
    logo: "https://avatars.githubusercontent.com/u/22225832?s=280&v=4"
    url: "https://portainer.bunnylab.tk"
    type: "Portainer"
    apikey:    ###"****"

I know this is a duplicate to #296 but still, I dunno the solution to this yet.

@Roundaround
Copy link
Contributor

See https://github.com/bastienwirtz/homer/blob/main/docs/troubleshooting.md. There's not a great one-click solution to it yet, but I do have #396 open discussing adding a better workaround for CORS-related issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants