Jump to content

cross origin on localhost


abbas jafari
 Share

Recommended Posts

Hi.
i create a program via pixi.js. now i want give this program to my users.
but when run index.html that linked my source project. 

give error cross origin for my files that used for Textures image.png.e2e3b5713771ac48e8eff6bb59cdebc6.png

this program must run on localhost user's . but if cant solve this program , not running on localhost 

please help me... 

Link to comment
Share on other sites

It might be that you just need to run a webserver locally and have it serve your index.html rather than opening the index.html with a browser (if this is indeed what you're doing.) Python comes with a simple http server you can start up easily.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...