Skip to content

apiembed only works with port 80 #52

@WALL-E

Description

@WALL-E

I want to listen port 8080 to deploy mockbin, but apiembed can not work.
I look at the code, find the following line of code is the problem

//filename: src/views/bin/view.jade
// Original code
iframe(src='http://api.apiembed.com/?source=#{req.protocol}://#{req.hostname}/bin/#{req.params.uuid}/sample', frameborder=0, scrolling='no', marginheight=0, marginwidth=0, width='100%', height=350, seamless)

// Solved the problem
iframe(src='http://api.apiembed.com/?source=#{req.protocol}://#{req.hostname}:8080/bin/#{req.params.uuid}/sample', frameborder=0, scrolling='no', marginheight=0, marginwidth=0, width='100%', height=350, seamless)

Are there any other people who have this problem ? Is there a better way to solve it

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions