• Register
  • Login
  • Pricing
  • Support
    • Support
    • Tutorials
    • Blog
    • Guide
    • Support Forum
  • Notification Settings Notification Settings
  • Private Messages Private Messages
  • All Messageboards
  • Help

Localhost embedding issue

Started 2022-04-12 by Mateusz Trzciński

Mateusz Trzciński

2022-04-12

Hi.
I've tried to embed a poll in my app. Everything works fine if I deploy my code to public servers, however I cannot embed a poll during local development.
I've added the "localhost" to allowed domains (also with other ports: for storybook "localhost:6006" and app "localhost:3000"). I'm still getting a rejection due to CORS.

Does anyone know how to handle poll embedding on localhost?

Markus Huber

2022-04-12

PollUnit needs a valid ssl certificate. Can you run your local dev server on https?

Mateusz Trzciński

2022-04-12

yup - fixed the problem, thank you. My bad - I missed this info on embed popup

Markus Huber

2022-04-12

OK, perfect!

Tools

  • Voting
  • Surveys
  • Free Tables
  • Collect Ideas and Feedback
  • Photo Contests
  • Video Contests
  • Music Contests
  • Landing Page
  • Pairwise Comparison
  • PollUnit Lab

Support

  • Get Started
  • PollUnit Help
  • Tutorials
  • Support Forum
  • support@pollunit.com

Tutorials

  • Create your first poll
  • Advanced poll features
  • Advanced survey branching logic
  • Distribute tasks online
  • Cast votes and rate options
  • Find a date
  • Vote on images
  • Create your own theme
  • Polls with your own logo
  • Evaluate your PollUnit
  • Dot Voting
  • Range Voting
  • Polls on your own website
  • Live Voting
  • Reach a consensus
  • Manage orga­nizations
  • Prevent multiple participation
  • Donations and participation fees

Legal

  • Privacy policy
  • Terms of use
  • Imprint

PollUnit

  • PollUnit Blog
  • About PollUnit
  • Press kit
  • © PollUnit
  • Register
  • Login
  • Pricing
  • Support
    • Support
    • Tutorials
    • Blog
    • Guide
    • Support Forum