{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Developer Portal (Drupal-based) /
avatar image
0
Question by Matias · Jun 17, 2015 at 05:34 PM · 410 Views SmartDocscors

Mixed Content error when loading documentation

Hi there!

I'm importing the documentation with SmartDocs for a resource that we have on the Edge, is the basic example from Yahoo Weather. The import is working fine, I used the WADL file to import it. The problem that I have is that when the documentations is loaded in the browser the following error appears:

Mixed Content: The page at 'https://internalportal/wather_yahoo_api/apis/get/forecastrss' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://internalinformation.com:59002/smartdocs/v1/sendrequest/v1/o/internalinformation/apimodels/proxyUrl?_=1434501804941'. This request has been blocked; the content must be served over HTTPS.

After that error when I tried to make a request the following error shows up:

Uncaught SyntaxError: Unexpected token <

I followed the instructions that are here (https://community.apigee.com/questions/2413/facing-no-access-control-allow-origin-problem-whil.html) because previously I had that error and with that setup the error gone. However, the new one appears. The only thing that I couldn't do it was install SmartDocs on the Edge, because the admin has to do it and he didn't do it yet. Anyways, Is it possible that as we don't have SmartDocs installed on the Edge the error is popping up? if that's the case, can somebody please explain me how that works? Is it making a call that a service from SmartDocs should answer or something like that? I'm just guessing

Something I almost forgot. I had a policy to add CORS. Basically I'm modifying the headers to allow the Cross-origin resource Sharing.

Thanks, Matias

Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

1 Answer

  • Sort: 
avatar image
1

Answer by gnanasekaran · Jun 17, 2015 at 08:59 PM

Hi Matias,

This is a browser restriction, either you need to enable https for internalinformation.com or use http for your portal

Mixed Content: The page at 'https://internalportal/wather_yahoo_api/apis/get/forecastrss' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://internalinformation.com:59002/smartdocs/v1/sendrequest/v1/o/internalinformation/apimodels/proxyUrl?_=1434501804941'. This request has been blocked; the content must be served over HTTPS

Thanks,

Comment
Add comment Show 1 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Kumaresan Sithambaram · Oct 14, 2016 at 07:35 PM 0
Link

@Mukundha Madhavan, Could you please elaborate what you mean by "you need to enable https ...". ?

I have the same issue where my proxy endpoint is https://xxxxx.com which is Reverse Proxy which internally referring to http.

Follow this Question

Answers Answers and Comments

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

401 error in smartdocs 0 Answers

How do I create a WADL for a POST with a mediaType of application/x-www-form-urlencoded? 3 Answers

How do you delete a smardocs model revision? 2 Answers

How does Smartdocs interact with Edge? 2 Answers

How can i send additional data to smartdocs in Developer Portal ? 1 Answer

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2019 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Members
  • Badges