Access-Control-Allow-Origin

This topic contains 1 reply, has 2 voices, and was last updated by  WPLMS 1 week, 2 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35461

    Dante
    Participant

    After running ionic serve in inspect mode shows some errors like:

    Access to XMLHttpRequest at ‘https://interlan.app/wp-content/uploads/2019/09/Basic-Course-icon.jpg’ from origin ‘http://localhost:8100’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource

    what is this ? should I add some code to .htaccess?

    I added some codes but did not solve it like :

    Header add Access-Control-Allow-Origin "*"
    Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
    Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
    
    #35678

    WPLMS
    Keymaster

    Install the Google chrome allow cors extension and use it while building the app.

    This is browser restriction because app is running on localhost:8100 and pulling data from yoursite.com which is restricted by browser.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Template Design © VibeThemes. All rights reserved.