Issue:HTTP BadRequest: Pragma: no-cache Strict-Transport-Security:

Om Maurya 0 Reputation points
2023-10-19T12:43:34.6433333+00:00

On localhost, I am able to get the token and load the powerBI report successfully, but on the website facing an issue with getting the token from Azure.

Exception text
HTTP BadRequest: Pragma: no-cache Strict-Transport-Security: max-age=31536000; includeSubDomains X-Content-Type-Options: nosniff x-ms-request-id: 4382d48a-b9e6-4369-be8b-f60507bb7a00 x-ms-ests-server: 2.1.16522.6 - EUS ProdSlices X-XSS-Protection: 0 Cache-Control: no-store, no-cache P3P: CP="DSP CUR OTPi IND OTRi ONL FIN" Set-Cookie: fpc=ArBfqExvb5lCrNO3QXKB00usdKotAQAAANQYw9wOAAAA; expires=Sat, 18-Nov-2023 12:32:21 GMT; path=/; secure; HttpOnly; SameSite=None, x-ms-gateway-slice=estsfd; path=/; secure; httponly, stsservicecookie=estsfd; path=/; secure; httponly Date: Thu, 19 Oct 2023 12:32:21 GMT

User's image

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,173 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 17,731 Reputation points Microsoft Employee Moderator
    2023-10-24T00:17:00.1166667+00:00

    @Om Maurya The error message you provided indicates that the request you sent to Azure was not successful and returned a BadRequest response. This could be due to various reasons such as incorrect credentials, expired token, or incorrect request format.

    To troubleshoot this issue, you can try the following steps:

    1. Verify that the credentials you are using to authenticate with Azure are correct and that you have the necessary permissions to access the resource you are trying to access.
    2. Ensure that the token you are using to authenticate with Azure has not expired. If it has, obtain a new token.
    3. Double-check that you are sending the correct headers and parameters in your request.
    4. Check for any network issues that could be causing the problem, such as a poor internet connection or firewalls/proxies blocking your requests. If none of these steps resolve the issue, please provide more information about your specific scenario so that we can better understand the problem and provide more targeted assistance.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.