Forum Discussion
RohitClouds
3 years agoNew Member
"Error in DataSource: Web.Contents Content Option Not Supported for Anonymous Connections"
I am connecting to api using username and password. but I am getting the authentication issue which is "Web.Contents with the Content option is only supported when connecting anonymously." My issue ...
DataVitalizer
3 years agoSuper User
Hi RohitClouds
- Go to File/Options and Settings/Data source settings
- Select your datasource and click Edit Permissions then Edit Credentials
- Select Anonymous and try again
Did it work ? 👍 A kudos would be appreciated 📢 Mark it as a solution to help spreading knowledge
- RohitClouds3 years agoNew Member
Thank you for your reply othy_bi. I am calling an API and we have api credentials for that I am not able to call anonymously.
Do you have any other ideas?- DataVitalizer3 years agoSuper User
Change your source row as below and try again
Source = Json.Document(Web.Contents(url,[ Headers = [#"Content-Type"="application/json"], Content = Text.ToBinary(body) ])),Did it work ? 👍 A kudos would be appreciated 📢 Mark it as a solution to help spreading knowledge